From: Daniel Stenberg Date: Wed, 9 Mar 2005 22:13:52 +0000 (+0000) Subject: As reported by 'nodak sodak' we should check for a NULL pointer before X-Git-Tag: curl-7_13_2~114 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0472629222e92cdeafae00b0acc3dd12c2e0e01e;p=thirdparty%2Fcurl.git As reported by 'nodak sodak' we should check for a NULL pointer before referencing the proxy name pointer. --- diff --git a/lib/url.c b/lib/url.c index 42b7350b0a..a6e60a92a3 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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"