diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-11 04:23:43 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-11 04:23:43 +0100 |
commit | 81fe2b15f38b02ed7dc1a18f8d126aa8fd411eb3 (patch) | |
tree | 2a09705ee1fbeb06a1b00f5f418f0ce8ff87611d /networking/wget.c | |
parent | 3fdba181c34f537867fce0b5afa2cc360b11be25 (diff) | |
download | busybox-w32-81fe2b15f38b02ed7dc1a18f8d126aa8fd411eb3.tar.gz busybox-w32-81fe2b15f38b02ed7dc1a18f8d126aa8fd411eb3.tar.bz2 busybox-w32-81fe2b15f38b02ed7dc1a18f8d126aa8fd411eb3.zip |
wget: fix bug 1057 "busybox wget segfaults with http_proxy environment set"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/wget.c')
-rw-r--r-- | networking/wget.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/wget.c b/networking/wget.c index 2b9ba55c3..5b73b933b 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -592,6 +592,7 @@ int wget_main(int argc UNUSED_PARAM, char **argv) | |||
592 | if (use_proxy) { | 592 | if (use_proxy) { |
593 | proxy = getenv(target.is_ftp ? "ftp_proxy" : "http_proxy"); | 593 | proxy = getenv(target.is_ftp ? "ftp_proxy" : "http_proxy"); |
594 | if (proxy && proxy[0]) { | 594 | if (proxy && proxy[0]) { |
595 | server.user = NULL; | ||
595 | parse_url(proxy, &server); | 596 | parse_url(proxy, &server); |
596 | } else { | 597 | } else { |
597 | use_proxy = 0; | 598 | use_proxy = 0; |