diff --git a/lib/connect.c b/lib/connect.c index dcfb4b4691622dc593e7ee7d5bf3e10a3736b2d2..9431a9720ea9f840d7c70482a09bae1420692929 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -949,12 +949,13 @@ void Curl_sndbufset(curl_socket_t sockfd) static int detectOsState = DETECT_OS_NONE; - if(detectOsState == DETECT_OS_NONE) + if(detectOsState == DETECT_OS_NONE) { if(Curl_verify_windows_version(6, 0, PLATFORM_WINNT, VERSION_GREATER_THAN_EQUAL)) detectOsState = DETECT_OS_VISTA_OR_LATER; else detectOsState = DETECT_OS_PREVISTA; + } if(detectOsState == DETECT_OS_VISTA_OR_LATER) return;