Commit c7ea47b1 authored by Paul Monson's avatar Paul Monson Committed by Matt Caswell
Browse files

conn_is_closed should return 1 if get_last_sys_error is WSAECONNRESET


CLA: trivial

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

(cherry picked from commit 0b885f72c2b18c57173e134a03ed013cd1ac361e)
parent 0db8f86a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -774,6 +774,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;