commit | ed735091574122fd5b2f5bac1edc56d5f03aa969 | [log] [tgz] |
---|---|---|
author | Daniel Stenberg <daniel@haxx.se> | Fri Sep 27 15:10:49 2019 +0200 |
committer | Daniel Stenberg <daniel@haxx.se> | Fri Sep 27 16:26:50 2019 +0200 |
tree | b6b21f64437cf279d39a8f085954dde8bcc4fd6d | |
parent | ee4cfd35a51875ca76a10cf98cebe82862f28d0b [diff] |
setopt: handle ALTSVC set to NULL
diff --git a/lib/setopt.c b/lib/setopt.c index 7058a24..f2006cb 100644 --- a/lib/setopt.c +++ b/lib/setopt.c
@@ -2725,7 +2725,8 @@ 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) {