From bfe5568c8515a628e128f4ab88f139c583847e56 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 29 Jan 2004 15:37:21 +0000 Subject: [PATCH] added verifyconnect proto and use it correctly in the waitconnect function --- lib/connect.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/connect.c b/lib/connect.c index 0d8d278f8..97fb15ccd 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -87,6 +87,8 @@ #include "memdebug.h" #endif +static bool verifyconnect(int sockfd); + int Curl_ourerrno(void) { #ifdef WIN32 @@ -178,7 +180,7 @@ int waitconnect(int sockfd, /* socket */ /* Call this function once now, and ignore the results. We do this to "clear" the error state on the socket so that we can later read it reliably. This is reported necessary on the MPE/iX operating system. */ - verifyconnect(); + verifyconnect(sockfd); /* now select() until we get connect or timeout */ FD_ZERO(&fd); -- 2.40.0