From 57b4909db92ab403cc955e6cef4ea2b8318586b6 Mon Sep 17 00:00:00 2001 From: Pere Orga Date: Mon, 14 Feb 2011 23:56:07 +0100 Subject: [PATCH] wget: fix SEGV with multiple urls and redirection Signed-off-by: Pere Orga Signed-off-by: Denys Vlasenko --- networking/wget.c | 1 + 1 file changed, 1 insertion(+) 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 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 */