From 3298630500cc1ee4e71ea53c4af68301a68cb35e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 1 Oct 2001 22:50:03 +0000 Subject: removed warning --- lib/connect.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3