mirror of
https://github.com/curl/curl.git
synced 2024-12-03 06:20:31 +08:00
socks: fix username max size is 255 (0xFF)
Closes #10105 Reviewed-by: Daniel Gustafsson
This commit is contained in:
parent
66f4d50fa6
commit
6cc18802f8
@ -690,7 +690,7 @@ static CURLproxycode do_SOCKS5(struct Curl_cfilter *cf,
|
||||
socksreq[len++] = (unsigned char) proxy_user_len;
|
||||
if(sx->proxy_user && proxy_user_len) {
|
||||
/* the length must fit in a single byte */
|
||||
if(proxy_user_len >= 255) {
|
||||
if(proxy_user_len > 255) {
|
||||
failf(data, "Excessive user name length for proxy auth");
|
||||
return CURLPX_LONG_USER;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user