bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch: Segmentation fault in pure IPv4 wget #12


From: Swapnil More
Subject: Patch: Segmentation fault in pure IPv4 wget #12
Date: Sat, 13 Jun 2020 23:29:02 +0530

Hi Team,
Find the patch inline as well as in attachment for the fix of issue
mentioned in mail header

index a2583898..353c1cc5 100644
--- a/src/host.c
+++ b/src/host.c
@@ -857,8 +857,8 @@ lookup_host (const char *host, int flags)
 #ifdef HAVE_LIBCARES
   if (ares)
     {
-      struct address_list *al4;
-      struct address_list *al6;
+      struct address_list *al4 = NULL;
+      struct address_list *al6 = NULL;

       if (opt.ipv4_only || !opt.ipv6_only)
         ares_gethostbyname (ares, host, AF_INET, callback, &al4);

I'm not sure if it is due configure command I used or what.
I was trying to port this version on Debian Jessie server where I need
--bind-dns-address=150.1.1.111 for the testing of my application.
Check and verify if it's a valid issue and patch


Thanks,
Swapnil

Attachment: wget-issue-#12.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]