From: Paul Monson Date: Tue, 26 Mar 2019 22:25:19 +0000 (-0700) Subject: conn_is_closed should return 1 if get_last_sys_error is WSAECONNRESET X-Git-Tag: openssl-3.0.0-alpha1~2294 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0b885f72c2b18c57173e134a03ed013cd1ac361e;p=oweals%2Fopenssl.git 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) --- 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;