Module Name:    src
Committed By:   christos
Date:           Mon Oct 17 00:52:53 UTC 2016

Modified Files:
        src/usr.bin/ftp: fetch.c

Log Message:
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.224 -r1.225 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.224 src/usr.bin/ftp/fetch.c:1.225
--- src/usr.bin/ftp/fetch.c:1.224	Wed Aug  3 08:33:56 2016
+++ src/usr.bin/ftp/fetch.c	Sun Oct 16 20:52:53 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: fetch.c,v 1.224 2016/08/03 12:33:56 maya Exp $	*/
+/*	$NetBSD: fetch.c,v 1.225 2016/10/17 00:52:53 christos 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.224 2016/08/03 12:33:56 maya Exp $");
+__RCSID("$NetBSD: fetch.c,v 1.225 2016/10/17 00:52:53 christos 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);
 

Reply via email to