As reported by 'nodak sodak' we should check for a NULL pointer before

referencing the proxy name pointer.
This commit is contained in:
Daniel Stenberg 2005-03-09 22:13:52 +00:00
parent c4f7570a23
commit 0472629222
1 changed files with 1 additions and 1 deletions

View File

@ -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"