removed warning

This commit is contained in:
Daniel Stenberg 2001-10-01 22:50:03 +00:00
parent dc27488c47
commit 3298630500
1 changed files with 2 additions and 0 deletions

View File

@ -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);