aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-27 15:10:49 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-27 16:26:50 +0200
commited735091574122fd5b2f5bac1edc56d5f03aa969 (patch)
treeb6b21f64437cf279d39a8f085954dde8bcc4fd6d
parentee4cfd35a51875ca76a10cf98cebe82862f28d0b (diff)
setopt: handle ALTSVC set to NULL
-rw-r--r--lib/setopt.c3
1 files changed, 2 insertions, 1 deletions
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) {