diff options
Diffstat (limited to 'libs/libcurl/src/file.c')
-rw-r--r-- | libs/libcurl/src/file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/libcurl/src/file.c b/libs/libcurl/src/file.c index 39b9e80059..925372cf3f 100644 --- a/libs/libcurl/src/file.c +++ b/libs/libcurl/src/file.c @@ -571,7 +571,9 @@ static CURLcode file_do(struct Curl_easy *data, bool *done) if(result)
return result;
- Curl_pgrsSetDownloadCounter(data, bytecount);
+ result = Curl_pgrsSetDownloadCounter(data, bytecount);
+ if(result)
+ return result;
if(Curl_pgrsUpdate(data))
result = CURLE_ABORTED_BY_CALLBACK;
|