]> git.ipfire.org Git - thirdparty/curl.git/commit
libcurl: reset rewind flag in curl_easy_reset()
authorOxan van Leeuwen <oxan.van.leeuwen@mollie.com>
Wed, 6 Aug 2025 12:09:32 +0000 (14:09 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 6 Aug 2025 15:58:21 +0000 (17:58 +0200)
commita93113b5b4d5dbf14eca1b503b963fb673ccfd4e
treed55f81780a488e6885b85a7f41009e4967b176a5
parentab9dfebdaed1f24c9d155e920452a8e30a4d5ef3
libcurl: reset rewind flag in curl_easy_reset()

curl_easy_reset() did not reset the `rewind_read` flag. This caused any
handles that previously had a CURLE_SEND_FAIL_REWIND error to get stuck
with that error, failing any subsequent requests, even if they didn't
have any body at all.

Verified in test 3034

Fixes #18206
Closes #18207
lib/request.c
tests/data/Makefile.am
tests/data/test3034 [new file with mode: 0644]
tests/libtest/Makefile.inc
tests/libtest/lib3034.c [new file with mode: 0644]