]> granicus.if.org Git - curl/commitdiff
SOCKS4: Value stored to 'rc' is never read
authorDaniel Stenberg <daniel@haxx.se>
Fri, 16 Apr 2010 21:03:55 +0000 (23:03 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 16 Apr 2010 21:03:55 +0000 (23:03 +0200)
lib/socks.c

index 0b051545c49e526a1895f6dfd33931fed94a81a8..df301ecec85bcd9ff5129cd43760da312de0d1b1 100644 (file)
@@ -172,8 +172,8 @@ CURLcode Curl_SOCKS4(const char *proxy_name,
       return CURLE_COULDNT_RESOLVE_PROXY;
 
     if(rc == CURLRESOLV_PENDING)
-      /* this requires that we're in "wait for resolve" state */
-      rc = Curl_wait_for_resolv(conn, &dns);
+      /* ignores the return code, but 'dns' remains NULL on failure */
+      (void)Curl_wait_for_resolv(conn, &dns);
 
     /*
      * We cannot use 'hostent' as a struct that Curl_resolv() returns.  It