mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
parent
c6ee89d1a4
commit
bc2a6ae586
6
r5dev/thirdparty/curl/imap.c
vendored
6
r5dev/thirdparty/curl/imap.c
vendored
@ -1141,6 +1141,12 @@ static CURLcode imap_state_fetch_resp(struct connectdata *conn, int imapcode,
|
||||
/* The conversion from curl_off_t to size_t is always fine here */
|
||||
chunk = (size_t)size;
|
||||
|
||||
if (!chunk) {
|
||||
/* no size, we're done with the data */
|
||||
state(conn, IMAP_STOP);
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
result = Curl_client_write(conn, CLIENTWRITE_BODY, pp->cache, chunk);
|
||||
if(result)
|
||||
return result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user