mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:21:41 +03:00
altsvc: make it one malloc instead of three per entry
Also return OOM correctly. Closes #19857
This commit is contained in:
parent
1c0822e8cb
commit
0b5ece553c
2 changed files with 21 additions and 28 deletions
|
|
@ -2532,7 +2532,7 @@ static CURLcode setopt_cptr(struct Curl_easy *data, CURLoption option,
|
|||
if(result)
|
||||
return result;
|
||||
if(ptr)
|
||||
(void)Curl_altsvc_load(data->asi, ptr);
|
||||
return Curl_altsvc_load(data->asi, ptr);
|
||||
break;
|
||||
#endif /* ! CURL_DISABLE_ALTSVC */
|
||||
#ifdef USE_ECH
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue