diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-03-09 22:13:52 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-03-09 22:13:52 +0000 |
commit | 0472629222e92cdeafae00b0acc3dd12c2e0e01e (patch) | |
tree | bcb85334e5f9a6810fba6f6152852c7861c1c6e6 | |
parent | c4f7570a235a0d7b73b38bed6b810c345dcf8226 (diff) |
As reported by 'nodak sodak' we should check for a NULL pointer before
referencing the proxy name pointer.
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |