summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorPere Orga2011-02-14 23:56:07 +0100
committerDenys Vlasenko2011-02-14 23:56:07 +0100
commit57b4909db92ab403cc955e6cef4ea2b8318586b6 (patch)
tree2cb81c0805a8247587ad39508c0512fc626a3c75 /networking
parent7c6f2468ccc849c9f8401ee97a3d894d8f483773 (diff)
downloadbusybox-57b4909db92ab403cc955e6cef4ea2b8318586b6.zip
busybox-57b4909db92ab403cc955e6cef4ea2b8318586b6.tar.gz
wget: fix SEGV with multiple urls and redirection
Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/wget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/wget.c b/networking/wget.c
index 6c015dc..cb169ab 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -805,6 +805,7 @@ However, in real world it was observed that some web servers
parse_url(str, &target);
if (!use_proxy) {
free(server.allocated);
+ server.allocated = NULL;
server.host = target.host;
/* strip_ipv6_scope_id(target.host); - no! */
/* we assume remote never gives us IPv6 addr with scope id */