From 0b885f72c2b18c57173e134a03ed013cd1ac361e Mon Sep 17 00:00:00 2001 From: Paul Monson Date: Tue, 26 Mar 2019 15:25:19 -0700 Subject: [PATCH] conn_is_closed should return 1 if get_last_sys_error is WSAECONNRESET CLA: trivial Reviewed-by: Paul Dale Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/8590) --- ssl/statem/statem_srvr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ssl/statem/statem_srvr.c b/ssl/statem/statem_srvr.c index e482e2d074..781efd236e 100644 --- a/ssl/statem/statem_srvr.c +++ b/ssl/statem/statem_srvr.c @@ -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; -- 2.25.1