From: Daniel Stenberg Date: Mon, 1 Oct 2001 22:50:03 +0000 (+0000) Subject: removed warning X-Git-Tag: curl-7_9_1~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3298630500cc1ee4e71ea53c4af68301a68cb35e;p=thirdparty%2Fcurl.git removed warning --- diff --git a/lib/connect.c b/lib/connect.c index ec68162c31..8ff3dd16f8 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);