]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
FTP PASV: Value stored to 'rc' is never read
authorDaniel Stenberg <daniel@haxx.se>
Fri, 16 Apr 2010 21:02:15 +0000 (23:02 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 16 Apr 2010 21:02:15 +0000 (23:02 +0200)
lib/ftp.c

index 9460dd9d5cc963c177d8be3fb6684ca017ba8fb0..ee1fb066b7744d0258abbd6555ba1143ba51244c 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -1630,8 +1630,9 @@ static CURLcode ftp_state_pasv_resp(struct connectdata *conn,
      */
     rc = Curl_resolv(conn, conn->proxy.name, (int)conn->port, &addr);
     if(rc == CURLRESOLV_PENDING)
-      /* BLOCKING */
-      rc = Curl_wait_for_resolv(conn, &addr);
+      /* BLOCKING, ignores the return code but 'addr' will be NULL in
+         case of failure */
+      (void)Curl_wait_for_resolv(conn, &addr);
 
     connectport =
       (unsigned short)conn->port; /* we connect to the proxy's port */