aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-10-01 22:50:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-10-01 22:50:03 +0000
commit3298630500cc1ee4e71ea53c4af68301a68cb35e (patch)
tree5073d3f560c9854799c323615124243eee5da195
parentdc27488c47ececa8801c9173006a103f190e73e7 (diff)
removed warning
-rw-r--r--lib/connect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c
index ec68162c3..8ff3dd16f 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -176,6 +176,8 @@ CURLcode Curl_connecthost(struct connectdata *conn,
/*
* Connecting with IPv6 support is so much easier and cleanly done
*/
+ port =0; /* we already have port in the 'remotehost' struct */
+
if(sockfd != -1)
/* don't use any previous one, it might be of wrong type */
sclose(sockfd);