mirror of
https://github.com/moparisthebest/curl
synced 2024-11-15 22:15:13 -05: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;
|
return 1;
|
||||||
}
|
}
|
||||||
else if (socksreq[1] == 255) {
|
else if (socksreq[1] == 255) {
|
||||||
if (proxy_name[0] == 0) {
|
if (!proxy_name || !*proxy_name) {
|
||||||
failf(conn->data,
|
failf(conn->data,
|
||||||
"No authentication method was acceptable. (It is quite likely"
|
"No authentication method was acceptable. (It is quite likely"
|
||||||
" that the SOCKS5 server wanted a username/password, since none"
|
" that the SOCKS5 server wanted a username/password, since none"
|
||||||
|
Loading…
Reference in New Issue
Block a user