conn_is_closed should return 1 if get_last_sys_error is WSAECONNRESET
authorPaul Monson <paulmon@microsoft.com>
Tue, 26 Mar 2019 22:25:19 +0000 (15:25 -0700)
committerMatt Caswell <matt@openssl.org>
Thu, 28 Mar 2019 10:22:20 +0000 (10:22 +0000)
CLA: trivial

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8590)

ssl/statem/statem_srvr.c

index e482e2d074824f111170a2b8c895ffc4b52209c2..781efd236e03fe6da3437530dfd2f27f2675292a 100644 (file)
@@ -775,6 +775,10 @@ static ossl_inline int conn_is_closed(void)
 #if defined(ECONNRESET)
     case ECONNRESET:
         return 1;
+#endif
+#if defined(WSAECONNRESET)
+    case WSAECONNRESET:
+        return 1;
 #endif
     default:
         return 0;