]> git.ipfire.org Git - thirdparty/curl.git/commit
transfer: refuse POSTFIELDS + RESUME_FROM combo
authorDaniel Stenberg <daniel@haxx.se>
Sun, 7 May 2023 22:12:25 +0000 (00:12 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 8 May 2023 12:10:34 +0000 (14:10 +0200)
commitfb7886b9c95009a837f584caf4943a455f3daa60
treeaeaaf18ca696bef34f0d797239ec8e6f4d557a2c
parent39434db41f3b976396f16f46f9a7ef759f2a5755
transfer: refuse POSTFIELDS + RESUME_FROM combo

The code assumes that such a resume is wanting to continue an upload
using the read callback, and since POSTFIELDS is done without callback
libcurl will just misbehave.

This combo will make the transfer fail with CURLE_BAD_FUNCTION_ARGUMENT
with an explanation in the error message.

Reported-by: Smackd0wn on github
Fixes #11081
Closes #11083
lib/transfer.c