]> git.ipfire.org Git - thirdparty/curl.git/commit
url: fix CURLOPT_POSTFIELDSIZE arg value check to allow -1
authorJay Satiro <raysatiro@yahoo.com>
Wed, 1 Nov 2017 06:11:30 +0000 (02:11 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 1 Nov 2017 06:11:30 +0000 (02:11 -0400)
commitb8bd6dc110fbcae20e0902bead097a40ed88e01a
tree653b0ad1151b674a67ce4d6b821da6f0b404eabb
parentfa394c8c2e39ea327d668f14353b32580e821b1c
url: fix CURLOPT_POSTFIELDSIZE arg value check to allow -1

.. also add same arg value check to CURLOPT_POSTFIELDSIZE_LARGE.

Prior to this change since f121575 (7.56.1+) CURLOPT_POSTFIELDSIZE
erroneously rejected -1 value with CURLE_BAD_FUNCTION_ARGUMENT.

Bug: https://curl.haxx.se/mail/lib-2017-11/0000.html
Reported-by: Andrew Lambert
lib/url.c