diff options
| author | Pere Orga <gotrunks@gmail.com> | 2011-02-14 23:56:07 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-02-14 23:56:07 +0100 |
| commit | 57b4909db92ab403cc955e6cef4ea2b8318586b6 (patch) | |
| tree | 2cb81c0805a8247587ad39508c0512fc626a3c75 | |
| parent | 7c6f2468ccc849c9f8401ee97a3d894d8f483773 (diff) | |
| download | busybox-w32-57b4909db92ab403cc955e6cef4ea2b8318586b6.tar.gz busybox-w32-57b4909db92ab403cc955e6cef4ea2b8318586b6.tar.bz2 busybox-w32-57b4909db92ab403cc955e6cef4ea2b8318586b6.zip | |
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 6c015dccc..cb169aba3 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
| @@ -805,6 +805,7 @@ However, in real world it was observed that some web servers | |||
| 805 | parse_url(str, &target); | 805 | parse_url(str, &target); |
| 806 | if (!use_proxy) { | 806 | if (!use_proxy) { |
| 807 | free(server.allocated); | 807 | free(server.allocated); |
| 808 | server.allocated = NULL; | ||
| 808 | server.host = target.host; | 809 | server.host = target.host; |
| 809 | /* strip_ipv6_scope_id(target.host); - no! */ | 810 | /* strip_ipv6_scope_id(target.host); - no! */ |
| 810 | /* we assume remote never gives us IPv6 addr with scope id */ | 811 | /* we assume remote never gives us IPv6 addr with scope id */ |
