Module Name: src
Committed By: snj
Date: Tue Nov 1 19:30:44 UTC 2016
Modified Files:
src/usr.bin/ftp [netbsd-7]: fetch.c
Log Message:
Pull up following revision(s) (requested by dholland in ticket #1265):
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.205.4.4 -r1.205.4.5 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.205.4.4 src/usr.bin/ftp/fetch.c:1.205.4.5
--- src/usr.bin/ftp/fetch.c:1.205.4.4 Fri Apr 29 19:03:44 2016
+++ src/usr.bin/ftp/fetch.c Tue Nov 1 19:30:44 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: fetch.c,v 1.205.4.4 2016/04/29 19:03:44 snj Exp $ */
+/* $NetBSD: fetch.c,v 1.205.4.5 2016/11/01 19:30:44 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.205.4.4 2016/04/29 19:03:44 snj Exp $");
+__RCSID("$NetBSD: fetch.c,v 1.205.4.5 2016/11/01 19:30:44 snj Exp $");
#endif /* not lint */
/*
@@ -1295,6 +1295,7 @@ fetch_url(const char *url, const char *p
rval = 1;
initurlinfo(&ui);
+ initurlinfo(&oui);
initauthinfo(&wauth, wwwauth);
initauthinfo(&pauth, proxyauth);