gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 46/116: CURLOPT_INFILESIZE: accept -1


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 46/116: CURLOPT_INFILESIZE: accept -1
Date: Tue, 05 Dec 2017 14:51:16 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 921bf1de527f287788fb0cdc7c1980e901fcb698
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Nov 3 14:40:05 2017 +0100

    CURLOPT_INFILESIZE: accept -1
    
    Regression since f121575
    
    Reported-by: Petr Voytsik
    Fixes #2047
---
 lib/url.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/url.c b/lib/url.c
index 2e801e58f..c3fb297d2 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1713,7 +1713,7 @@ CURLcode Curl_setopt(struct Curl_easy *data, CURLoption 
option,
      * to-be-uploaded file.
      */
     arg = va_arg(param, long);
-    if(arg < 0)
+    if(arg < -1)
       return CURLE_BAD_FUNCTION_ARGUMENT;
     data->set.filesize = arg;
     break;
@@ -1723,7 +1723,7 @@ CURLcode Curl_setopt(struct Curl_easy *data, CURLoption 
option,
      * to-be-uploaded file.
      */
     bigsize = va_arg(param, curl_off_t);
-    if(bigsize < 0)
+    if(bigsize < -1)
       return CURLE_BAD_FUNCTION_ARGUMENT;
     data->set.filesize = bigsize;
     break;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]