diff options
author | Paul Monson <paulmon@microsoft.com> | 2019-03-26 23:25:19 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-03-28 11:22:20 +0100 |
commit | 0b885f72c2b18c57173e134a03ed013cd1ac361e (patch) | |
tree | a9157ba2b65f410905387a91c7f9a468e4ed5f74 /ssl/statem | |
parent | coverity fixes for SSKDF + mac_app + kdf test cleanup (diff) | |
download | openssl-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.c | 4 |
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; } |