gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 45/116: url: fix CURLOPT_DNS_CACHE_TIMEOUT arg valu


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 45/116: url: fix CURLOPT_DNS_CACHE_TIMEOUT arg value check to allow -1
Date: Tue, 05 Dec 2017 14:51:15 +0100

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

ng0 pushed a commit to branch master
in repository gnurl.

commit b51e0742b9349c6414956570c76a2152f5b22106
Author: Jay Satiro <address@hidden>
AuthorDate: Thu Nov 2 00:30:28 2017 -0400

    url: fix CURLOPT_DNS_CACHE_TIMEOUT arg value check to allow -1
    
    Prior to this change since f121575 (7.56.1+) CURLOPT_DNS_CACHE_TIMEOUT
    erroneously rejected -1 with CURLE_BAD_FUNCTION_ARGUMENT.
---
 lib/url.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/url.c b/lib/url.c
index c334578ea..2e801e58f 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -722,7 +722,7 @@ CURLcode Curl_setopt(struct Curl_easy *data, CURLoption 
option,
   switch(option) {
   case CURLOPT_DNS_CACHE_TIMEOUT:
     arg = va_arg(param, long);
-    if(arg < 0)
+    if(arg < -1)
       return CURLE_BAD_FUNCTION_ARGUMENT;
     data->set.dns_cache_timeout = arg;
     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]