Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/ftp Initialize the token match pointer.



details:   https://anonhg.NetBSD.org/src/rev/55f7fe3edc8a
branches:  trunk
changeset: 343456:55f7fe3edc8a
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Fri Feb 05 03:41:05 2016 +0000

description:
Initialize the token match pointer.

diffstat:

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

diffs (27 lines):

diff -r e16bfb838a44 -r 55f7fe3edc8a usr.bin/ftp/fetch.c
--- a/usr.bin/ftp/fetch.c       Fri Feb 05 03:38:50 2016 +0000
+++ b/usr.bin/ftp/fetch.c       Fri Feb 05 03:41:05 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fetch.c,v 1.220 2016/01/05 11:41:00 wiz Exp $  */
+/*     $NetBSD: fetch.c,v 1.221 2016/02/05 03:41:05 nonaka 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.220 2016/01/05 11:41:00 wiz Exp $");
+__RCSID("$NetBSD: fetch.c,v 1.221 2016/02/05 03:41:05 nonaka Exp $");
 #endif /* not lint */
 
 /*
@@ -1196,6 +1196,8 @@
                        goto cleanup_fetch_url;
                if (len == 0)
                        break;
+
+               cp = buf;
                if (match_token(&cp, "Proxy-Authenticate:")) {
                        const char *token;
                        if (!(token = match_token(&cp, "Basic"))) {



Home | Main Index | Thread Index | Old Index