mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 09:08:49 -05:00
ftp: mark return-ignoring calls to Curl_GetFTPResponse with (void)
They're done on purpose, make that visible in the code. Reported-by: MonocleAI Fixes #5412 Closes #549
This commit is contained in:
parent
5646e563ae
commit
dbc5c17738
@ -387,7 +387,7 @@ static CURLcode ReceivedServerConnect(struct connectdata *conn, bool *received)
|
|||||||
if(pp->cache_size && pp->cache && pp->cache[0] > '3') {
|
if(pp->cache_size && pp->cache && pp->cache[0] > '3') {
|
||||||
/* Data connection could not be established, let's return */
|
/* Data connection could not be established, let's return */
|
||||||
infof(data, "There is negative response in cache while serv connect\n");
|
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;
|
return CURLE_FTP_ACCEPT_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -409,7 +409,7 @@ static CURLcode ReceivedServerConnect(struct connectdata *conn, bool *received)
|
|||||||
}
|
}
|
||||||
else if(result & CURL_CSELECT_IN) {
|
else if(result & CURL_CSELECT_IN) {
|
||||||
infof(data, "Ctrl conn has data while waiting for data conn\n");
|
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)
|
if(ftpcode/100 > 3)
|
||||||
return CURLE_FTP_ACCEPT_FAILED;
|
return CURLE_FTP_ACCEPT_FAILED;
|
||||||
|
Loading…
Reference in New Issue
Block a user