From 06c38330ba463a3a4bb343547dd71addb3073fa5 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Wed, 3 Dec 2003 07:55:51 +0000
Subject: [PATCH] Steve Green fixed Curl_resolv()

---
 CHANGES      | 3 +++
 lib/hostip.c | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/CHANGES b/CHANGES
index 91e227f2d0..7e281d4a43 100644
--- a/CHANGES
+++ b/CHANGES
@@ -8,6 +8,9 @@
 
 
 Daniel (3 December)
+- Steve Green fixed a return code bug in Curl_resolv(), that made the socks5
+  code fail.
+
 - swalkaus at yahoo.com patched libcurl to ignore Content-Length: headers
   when Tranfer-Encoding: chunked is used, as mandated by RFC2616.
 
diff --git a/lib/hostip.c b/lib/hostip.c
index 3e5429b702..114525c3de 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -352,6 +352,8 @@ int Curl_resolv(struct connectdata *conn,
         /* returned failure, bail out nicely */
         Curl_freeaddrinfo(addr);
       }
+      else
+        rc = 0;
     }
   }
 
-- 
GitLab