From ed735091574122fd5b2f5bac1edc56d5f03aa969 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 27 Sep 2019 15:10:49 +0200 Subject: 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) { -- cgit v1.2.3