gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 112/222: setopt: handle ALTSVC set to NULL


From: gnunet
Subject: [gnurl] 112/222: setopt: handle ALTSVC set to NULL
Date: Thu, 07 Nov 2019 00:10:08 +0100

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

ng0 pushed a commit to branch master
in repository gnurl.

commit ed735091574122fd5b2f5bac1edc56d5f03aa969
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Sep 27 15:10:49 2019 +0200

    setopt: handle ALTSVC set to NULL
---
 lib/setopt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/setopt.c b/lib/setopt.c
index 7058a249c..f2006cbf4 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -2725,7 +2725,8 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption 
option, va_list param)
     result = Curl_setstropt(&data->set.str[STRING_ALTSVC], argptr);
     if(result)
       return result;
-    (void)Curl_altsvc_load(data->asi, argptr);
+    if(argptr)
+      (void)Curl_altsvc_load(data->asi, argptr);
     break;
   case CURLOPT_ALTSVC_CTRL:
     if(!data->asi) {

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



reply via email to

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