mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08:00
As reported by 'nodak sodak' we should check for a NULL pointer before
referencing the proxy name pointer.
This commit is contained in:
parent
c4f7570a23
commit
0472629222
@ -1831,7 +1831,7 @@ static int handleSock5Proxy(const char *proxy_name,
|
||||
return 1;
|
||||
}
|
||||
else if (socksreq[1] == 255) {
|
||||
if (proxy_name[0] == 0) {
|
||||
if (!proxy_name || !*proxy_name) {
|
||||
failf(conn->data,
|
||||
"No authentication method was acceptable. (It is quite likely"
|
||||
" that the SOCKS5 server wanted a username/password, since none"
|
||||
|
Loading…
Reference in New Issue
Block a user