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:
parent
3fdba181c3
commit
81fe2b15f3
@ -592,6 +592,7 @@ int wget_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
if (use_proxy) {
|
if (use_proxy) {
|
||||||
proxy = getenv(target.is_ftp ? "ftp_proxy" : "http_proxy");
|
proxy = getenv(target.is_ftp ? "ftp_proxy" : "http_proxy");
|
||||||
if (proxy && proxy[0]) {
|
if (proxy && proxy[0]) {
|
||||||
|
server.user = NULL;
|
||||||
parse_url(proxy, &server);
|
parse_url(proxy, &server);
|
||||||
} else {
|
} else {
|
||||||
use_proxy = 0;
|
use_proxy = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user