wget: fix bug 1057 "busybox wget segfaults with http_proxy environment set"
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 11 Feb 2010 03:23:43 +0000 (04:23 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 11 Feb 2010 03:23:43 +0000 (04:23 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/wget.c

index 2b9ba55c36f9f296b770df5ebdaac845479f4dfa..5b73b933b7ffbef16e70ee983f2bebabd92db663 100644 (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;