Commit bd7775e1 authored by Matt Caswell's avatar Matt Caswell
Browse files

Fix assertion failure in SSL_set_bio()



If SSL_set_bio() is called with a NULL wbio after a failed connection then
this can trigger an assertion failure. This should be valid behaviour and
the assertion is in fact invalid and can simply be removed.

Reviewed-by: default avatarViktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5966)
parent 2bdeffef
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -3844,8 +3844,6 @@ int ssl_free_wbio_buffer(SSL *s)
        return 1;

    s->wbio = BIO_pop(s->wbio);
    if (!ossl_assert(s->wbio != NULL))
        return 0;
    BIO_free(s->bbio);
    s->bbio = NULL;