mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 00:58:48 -05:00
http: don't set the "rewind" flag when not uploading anything
It triggers an assert. Detected by OSS-Fuzz Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8144 Closes #2546
This commit is contained in:
parent
277d3cdc0f
commit
e9d9d1af8a
@ -433,7 +433,7 @@ static CURLcode http_perhapsrewind(struct connectdata *conn)
|
||||
data left to send, keep on sending. */
|
||||
|
||||
/* rewind data when completely done sending! */
|
||||
if(!conn->bits.authneg) {
|
||||
if(!conn->bits.authneg && (conn->writesockfd != CURL_SOCKET_BAD)) {
|
||||
conn->bits.rewindaftersend = TRUE;
|
||||
infof(data, "Rewind stream after send\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user