Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/ftp PR/51558: ast@: ftp dumps core after usage messa...



details:   https://anonhg.NetBSD.org/src/rev/217c3d9dd101
branches:  trunk
changeset: 818529:217c3d9dd101
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Oct 17 00:52:53 2016 +0000

description:
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.

diffstat:

 usr.bin/ftp/fetch.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 7de18f7e769c -r 217c3d9dd101 usr.bin/ftp/fetch.c
--- a/usr.bin/ftp/fetch.c       Mon Oct 17 00:24:13 2016 +0000
+++ b/usr.bin/ftp/fetch.c       Mon Oct 17 00:52:53 2016 +0000
@@ -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 @@
        rval = 1;
 
        initurlinfo(&ui);
+       initurlinfo(&oui);
        initauthinfo(&wauth, wwwauth);
        initauthinfo(&pauth, proxyauth);
 



Home | Main Index | Thread Index | Old Index