gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 204/220: tool_setopt: handle a libcurl build withou


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 204/220: tool_setopt: handle a libcurl build without netrc support
Date: Thu, 12 Sep 2019 17:29:24 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 74e152f11915cdd46792daf5c5728be1b0dd9503
Author: Daniel Stenberg <address@hidden>
AuthorDate: Sun Sep 8 23:47:56 2019 +0200

    tool_setopt: handle a libcurl build without netrc support
    
    Reported-by: codesniffer13 on github
    Fixes #4302
    Closes #4305
---
 src/tool_setopt.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/tool_setopt.c b/src/tool_setopt.c
index 871e25c01..4c98d9057 100644
--- a/src/tool_setopt.c
+++ b/src/tool_setopt.c
@@ -824,6 +824,16 @@ bool tool_setopt_skip(CURLoption tag)
     break;
   }
 #endif
+#ifdef CURL_DISABLE_NETRC
+#define USED_TAG
+  switch(tag) {
+  case CURLOPT_NETRC:
+  case CURLOPT_NETRC_FILE:
+    return TRUE;
+  default:
+    break;
+  }
+#endif
 
 #ifndef USED_TAG
   (void)tag;

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



reply via email to

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