setopt: let CURLOPT_ECH set to NULL reset to default
Because NULL is documented as default and most options that take pointers accept NULL to reset back to internal default. Closes #14634
This commit is contained in:
parent
20d447c1a7
commit
05609bac95
@ -3188,8 +3188,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
|
||||
argptr = va_arg(param, char *);
|
||||
if(!argptr) {
|
||||
data->set.tls_ech = CURLECH_DISABLE;
|
||||
result = CURLE_BAD_FUNCTION_ARGUMENT;
|
||||
return result;
|
||||
return CURLE_OK;
|
||||
}
|
||||
plen = strlen(argptr);
|
||||
if(plen > CURL_MAX_INPUT_LENGTH) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user