fix compiler warning: enumerated type mixed with another type
authorYang Tse <yangsita@gmail.com>
Mon, 31 May 2010 14:36:05 +0000 (16:36 +0200)
committerYang Tse <yangsita@gmail.com>
Mon, 31 May 2010 14:36:05 +0000 (16:36 +0200)
lib/socks.c

index a10a991..7b5740b 100644 (file)
@@ -603,9 +603,9 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
 
     if(rc == CURLRESOLV_PENDING) {
       /* this requires that we're in "wait for resolve" state */
-      rc = Curl_wait_for_resolv(conn, &dns);
-      if(rc)
-        return rc;
+      code = Curl_wait_for_resolv(conn, &dns);
+      if(code != CURLE_OK)
+        return code;
     }
 
     /*