wget: fix bug 1057 "busybox wget segfaults with http_proxy environment set"

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-02-11 04:23:43 +01:00
parent 3fdba181c3
commit 81fe2b15f3

View File

@ -592,6 +592,7 @@ int wget_main(int argc UNUSED_PARAM, char **argv)
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;