mirror of
https://github.com/curl/curl.git
synced 2026-07-23 21:17:17 +03:00
setopt: illegal CURLOPT_SOCKS5_AUTH should return error
The check was just wrong before.
Regression introduced in 30da1f5974
Bug: https://issues.oss-fuzz.com/issues/401430844
Closes #16617
This commit is contained in:
parent
27d24690a4
commit
36a831b868
1 changed files with 1 additions and 1 deletions
|
|
@ -689,7 +689,7 @@ static CURLcode setopt_long(struct Curl_easy *data, CURLoption option,
|
|||
data->set.proxy_transfer_mode = (bool)uarg;
|
||||
break;
|
||||
case CURLOPT_SOCKS5_AUTH:
|
||||
if(data->set.socks5auth & ~(CURLAUTH_BASIC | CURLAUTH_GSSAPI))
|
||||
if(uarg & ~(CURLAUTH_BASIC | CURLAUTH_GSSAPI))
|
||||
return CURLE_NOT_BUILT_IN;
|
||||
data->set.socks5auth = (unsigned char)uarg;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue