diff options
author | Pere Orga | 2011-02-14 23:56:07 +0100 |
---|---|---|
committer | Denys Vlasenko | 2011-02-14 23:56:07 +0100 |
commit | 57b4909db92ab403cc955e6cef4ea2b8318586b6 (patch) | |
tree | 2cb81c0805a8247587ad39508c0512fc626a3c75 | |
parent | 7c6f2468ccc849c9f8401ee97a3d894d8f483773 (diff) | |
download | busybox-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>
-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 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 */ |