mirror of
https://github.com/curl/curl.git
synced 2026-07-26 20:37:17 +03:00
Curl_pgrsDone: return int and acknowledge return code
Since Curl_pgrsDone() itself calls Curl_pgrsUpdate() which may return an abort instruction or similar we need to return that info back and subsequently properly handle return codes from Curl_pgrsDone() where used. (Spotted by a Coverity scan)
This commit is contained in:
parent
72c7c1d64e
commit
6cd084a3b5
5 changed files with 17 additions and 6 deletions
|
|
@ -2820,7 +2820,8 @@ static CURLcode ssh_done(struct connectdata *conn, CURLcode status)
|
|||
|
||||
if(sftp_scp)
|
||||
Curl_safefree(sftp_scp->path);
|
||||
Curl_pgrsDone(conn);
|
||||
if(Curl_pgrsDone(conn))
|
||||
return CURLE_ABORTED_BY_CALLBACK;
|
||||
|
||||
conn->data->req.keepon = 0; /* clear all bits */
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue