diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-02-04 19:55:27 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-02-04 19:55:27 +0100 |
commit | f99811908419608e3ab81393d0177cc456101e4b (patch) | |
tree | 11793447075d012f20bcd4bb1a8291d86f94520a /networking | |
parent | 1e98f3741c5a844c1d3d7966f20cd09dded05d0d (diff) | |
download | busybox-w32-f99811908419608e3ab81393d0177cc456101e4b.tar.gz busybox-w32-f99811908419608e3ab81393d0177cc456101e4b.tar.bz2 busybox-w32-f99811908419608e3ab81393d0177cc456101e4b.zip |
Apply post-1.19.3 patches, bump version to 1.19.41_19_4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/wget.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/networking/wget.c b/networking/wget.c index 6443705fd..fbb8a2e12 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -552,6 +552,7 @@ static void download_one_url(const char *url) | |||
552 | FILE *dfp; /* socket to ftp server (data) */ | 552 | FILE *dfp; /* socket to ftp server (data) */ |
553 | char *proxy = NULL; | 553 | char *proxy = NULL; |
554 | char *fname_out_alloc; | 554 | char *fname_out_alloc; |
555 | char *redirected_path = NULL; | ||
555 | struct host_info server; | 556 | struct host_info server; |
556 | struct host_info target; | 557 | struct host_info target; |
557 | 558 | ||
@@ -794,8 +795,8 @@ However, in real world it was observed that some web servers | |||
794 | bb_error_msg_and_die("too many redirections"); | 795 | bb_error_msg_and_die("too many redirections"); |
795 | fclose(sfp); | 796 | fclose(sfp); |
796 | if (str[0] == '/') { | 797 | if (str[0] == '/') { |
797 | free(target.allocated); | 798 | free(redirected_path); |
798 | target.path = target.allocated = xstrdup(str+1); | 799 | target.path = redirected_path = xstrdup(str+1); |
799 | /* lsa stays the same: it's on the same server */ | 800 | /* lsa stays the same: it's on the same server */ |
800 | } else { | 801 | } else { |
801 | parse_url(str, &target); | 802 | parse_url(str, &target); |
@@ -850,6 +851,7 @@ However, in real world it was observed that some web servers | |||
850 | free(server.allocated); | 851 | free(server.allocated); |
851 | free(target.allocated); | 852 | free(target.allocated); |
852 | free(fname_out_alloc); | 853 | free(fname_out_alloc); |
854 | free(redirected_path); | ||
853 | } | 855 | } |
854 | 856 | ||
855 | int wget_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 857 | int wget_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |