]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
socks: remove bad assert from do_SOCKS5()
authorDaniel Stenberg <daniel@haxx.se>
Mon, 10 Mar 2025 11:09:00 +0000 (12:09 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 10 Mar 2025 12:13:59 +0000 (13:13 +0100)
It verified the auth bits wrongly. We don't need this assert anymore
since the input is verified in *setopt().

Bug: https://issues.oss-fuzz.com/issues/401869346

Closes #16650

lib/socks.c

index 30a73112c3273b113bea1d3265126ef5ad1d6ca8..cb198df1ce96954d2126803770003c2239504a25 100644 (file)
@@ -590,7 +590,6 @@ static CURLproxycode do_SOCKS5(struct Curl_cfilter *cf,
   bool allow_gssapi = FALSE;
   struct Curl_dns_entry *dns = NULL;
 
-  DEBUGASSERT(auth & (CURLAUTH_BASIC | CURLAUTH_GSSAPI));
   switch(sx->state) {
   case CONNECT_SOCKS_INIT:
     if(conn->bits.httpproxy)