Module Name: src
Committed By: snj
Date: Wed Nov 16 17:56:42 UTC 2016
Modified Files:
src/usr.bin/ftp [netbsd-6]: fetch.c
Log Message:
Pull up following revision(s) (requested by nonaka in ticket #1414):
usr.bin/ftp/fetch.c: revision 1.225
PR/51558: ast@: ftp dumps core after usage message when IPv6 URL lacks a slash.
Initialize variable so that we don't get random behavior on cleanup.
To generate a diff of this commit:
cvs rdiff -u -r1.195.2.3 -r1.195.2.4 src/usr.bin/ftp/fetch.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/ftp/fetch.c
diff -u src/usr.bin/ftp/fetch.c:1.195.2.3 src/usr.bin/ftp/fetch.c:1.195.2.4
--- src/usr.bin/ftp/fetch.c:1.195.2.3 Sat Aug 27 13:57:01 2016
+++ src/usr.bin/ftp/fetch.c Wed Nov 16 17:56:42 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: fetch.c,v 1.195.2.3 2016/08/27 13:57:01 bouyer Exp $ */
+/* $NetBSD: fetch.c,v 1.195.2.4 2016/11/16 17:56:42 snj Exp $ */
/*-
* Copyright (c) 1997-2015 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: fetch.c,v 1.195.2.3 2016/08/27 13:57:01 bouyer Exp $");
+__RCSID("$NetBSD: fetch.c,v 1.195.2.4 2016/11/16 17:56:42 snj Exp $");
#endif /* not lint */
/*
@@ -1296,6 +1296,7 @@ fetch_url(const char *url, const char *p
rval = 1;
initurlinfo(&ui);
+ initurlinfo(&oui);
initauthinfo(&wauth, wwwauth);
initauthinfo(&pauth, proxyauth);