mirror of
https://github.com/moparisthebest/curl
synced 2024-11-16 06:25:03 -05:00
transfer: fix GCC 10 warning with flag '-Wint-in-bool-context'
... and return the error code from the Curl_mime_rewind call. Closes #6537
This commit is contained in:
parent
0cf5670c54
commit
1c1158a9dd
@ -435,9 +435,10 @@ CURLcode Curl_readrewind(struct Curl_easy *data)
|
||||
; /* do nothing */
|
||||
else if(data->state.httpreq == HTTPREQ_POST_MIME ||
|
||||
data->state.httpreq == HTTPREQ_POST_FORM) {
|
||||
if(Curl_mime_rewind(mimepart) != CURLE_OK) {
|
||||
CURLcode result = Curl_mime_rewind(mimepart);
|
||||
if(result) {
|
||||
failf(data, "Cannot rewind mime/post data");
|
||||
return CURLE_SEND_FAIL_REWIND;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user