]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ftp: mark return-ignoring calls to Curl_GetFTPResponse with (void)
authorDaniel Stenberg <daniel@haxx.se>
Mon, 18 May 2020 16:44:54 +0000 (18:44 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 19 May 2020 06:06:41 +0000 (08:06 +0200)
They're done on purpose, make that visible in the code.
Reported-by: MonocleAI
Fixes #5412
Closes #549

lib/ftp.c

index d17cbc7e2cb9f268fbcb9f355a35eef0e7fbd15d..d3a145f665dd1784f9910289dd18cad7524a4409 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -387,7 +387,7 @@ static CURLcode ReceivedServerConnect(struct connectdata *conn, bool *received)
   if(pp->cache_size && pp->cache && pp->cache[0] > '3') {
     /* Data connection could not be established, let's return */
     infof(data, "There is negative response in cache while serv connect\n");
-    Curl_GetFTPResponse(&nread, conn, &ftpcode);
+    (void)Curl_GetFTPResponse(&nread, conn, &ftpcode);
     return CURLE_FTP_ACCEPT_FAILED;
   }
 
@@ -409,7 +409,7 @@ static CURLcode ReceivedServerConnect(struct connectdata *conn, bool *received)
     }
     else if(result & CURL_CSELECT_IN) {
       infof(data, "Ctrl conn has data while waiting for data conn\n");
-      Curl_GetFTPResponse(&nread, conn, &ftpcode);
+      (void)Curl_GetFTPResponse(&nread, conn, &ftpcode);
 
       if(ftpcode/100 > 3)
         return CURLE_FTP_ACCEPT_FAILED;