1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 16:48:49 -05:00

setopt: handle ALTSVC set to NULL

This commit is contained in:
Daniel Stenberg 2019-09-27 15:10:49 +02:00
parent ee4cfd35a5
commit ed73509157
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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) {