1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-04 08:35:05 -05:00

parse_proxy: make sure portptr is initialized

Reported-by: Benbuck Nason

fixes #3959
This commit is contained in:
Daniel Stenberg 2019-05-28 23:50:49 +02:00
parent a6183ab23a
commit 6961322f70
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -2310,7 +2310,7 @@ static CURLcode parse_proxy(struct Curl_easy *data,
struct connectdata *conn, char *proxy, struct connectdata *conn, char *proxy,
curl_proxytype proxytype) curl_proxytype proxytype)
{ {
char *portptr; char *portptr = NULL;
long port = -1; long port = -1;
char *proxyuser = NULL; char *proxyuser = NULL;
char *proxypasswd = NULL; char *proxypasswd = NULL;