commit | 81fe2b15f38b02ed7dc1a18f8d126aa8fd411eb3 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Thu Feb 11 04:23:43 2010 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Thu Feb 11 04:23:43 2010 +0100 |
tree | 2a09705ee1fbeb06a1b00f5f418f0ce8ff87611d | |
parent | 3fdba181c34f537867fce0b5afa2cc360b11be25 [diff] |
wget: fix bug 1057 "busybox wget segfaults with http_proxy environment set" Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/networking/wget.c b/networking/wget.c index 2b9ba55..5b73b93 100644 --- a/networking/wget.c +++ b/networking/wget.c
@@ -592,6 +592,7 @@ if (use_proxy) { proxy = getenv(target.is_ftp ? "ftp_proxy" : "http_proxy"); if (proxy && proxy[0]) { + server.user = NULL; parse_url(proxy, &server); } else { use_proxy = 0;