summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-05-18 18:44:54 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-05-18 18:44:54 +0200
commit07f7d269af2d32db764beab18c7c2c36fdd7bff5 (patch)
treea6853c466e8eda74db5138c9f99f9d23399698f0
parent5646e563aeb37e0ffdfbb7f8c4faf2455056e8a9 (diff)
downloadcurl-bagder/ftp-void-getresponse.tar.gz
ftp: mark return-ignoring calls to Curl_GetFTPResponse with (void)bagder/ftp-void-getresponse
They're done on purpose, make that visible in the code. Reported-by: MonocleAI Fixes #5412
-rw-r--r--lib/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index d17cbc7e2..d3a145f66 100644
--- 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;