summaryrefslogtreecommitdiffstats
path: root/ssl/statem
diff options
context:
space:
mode:
authorPaul Monson <paulmon@microsoft.com>2019-03-26 23:25:19 +0100
committerMatt Caswell <matt@openssl.org>2019-03-28 11:22:20 +0100
commit0b885f72c2b18c57173e134a03ed013cd1ac361e (patch)
treea9157ba2b65f410905387a91c7f9a468e4ed5f74 /ssl/statem
parentcoverity fixes for SSKDF + mac_app + kdf test cleanup (diff)
downloadopenssl-0b885f72c2b18c57173e134a03ed013cd1ac361e.tar.xz
openssl-0b885f72c2b18c57173e134a03ed013cd1ac361e.zip
conn_is_closed should return 1 if get_last_sys_error is WSAECONNRESET
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)
Diffstat (limited to 'ssl/statem')
-rw-r--r--ssl/statem/statem_srvr.c4
1 files changed, 4 insertions, 0 deletions
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
@@ -776,6 +776,10 @@ static ossl_inline int conn_is_closed(void)
case ECONNRESET:
return 1;
#endif
+#if defined(WSAECONNRESET)
+ case WSAECONNRESET:
+ return 1;
+#endif
default:
return 0;
}