mirror of
https://github.com/curl/curl.git
synced 2026-08-06 09:16:12 +03:00
setopt: fix check for CURLOPT_PROXY_TLSAUTH_TYPE value
Prior to this change CURLOPT_PROXY_TLSAUTH_TYPE would return CURLE_BAD_FUNCTION_ARGUMENT on any type other than NULL. Since there is only one type of TLS auth and it is also the default (SRP) the TLS auth would work anyway. Closes https://github.com/curl/curl/pull/12981
This commit is contained in:
parent
e3a3bb371f
commit
7448054c38
1 changed files with 2 additions and 2 deletions
|
|
@ -2864,13 +2864,13 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
|
|||
#endif
|
||||
case CURLOPT_TLSAUTH_TYPE:
|
||||
argptr = va_arg(param, char *);
|
||||
if(argptr && !strncasecompare(argptr, "SRP", strlen("SRP")))
|
||||
if(argptr && !strcasecompare(argptr, "SRP"))
|
||||
return CURLE_BAD_FUNCTION_ARGUMENT;
|
||||
break;
|
||||
#ifndef CURL_DISABLE_PROXY
|
||||
case CURLOPT_PROXY_TLSAUTH_TYPE:
|
||||
argptr = va_arg(param, char *);
|
||||
if(argptr || !strncasecompare(argptr, "SRP", strlen("SRP")))
|
||||
if(argptr && !strcasecompare(argptr, "SRP"))
|
||||
return CURLE_BAD_FUNCTION_ARGUMENT;
|
||||
break;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue