Module Name: src
Committed By: nonaka
Date: Fri Feb 5 03:41:05 UTC 2016
Modified Files:
src/usr.bin/ftp: fetch.c
Log Message:
Initialize the token match pointer.
To generate a diff of this commit:
cvs rdiff -u -r1.220 -r1.221 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.220 src/usr.bin/ftp/fetch.c:1.221
--- src/usr.bin/ftp/fetch.c:1.220 Tue Jan 5 11:41:00 2016
+++ src/usr.bin/ftp/fetch.c Fri Feb 5 03:41:05 2016
@@ -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 @@ connectmethod(int s, FETCH *fin, struct
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"))) {