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>
This commit is contained in:
Pere Orga 2011-02-14 23:56:07 +01:00 committed by Denys Vlasenko
parent 7c6f2468cc
commit 57b4909db9

View File

@ -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 */