Commit 1d015368 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)

(cherry picked from commit bd7775e1)
parent 8917c890
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -3519,7 +3519,6 @@ void ssl_free_wbio_buffer(SSL *s)
        return;

    s->wbio = BIO_pop(s->wbio);
    assert(s->wbio != NULL);
    BIO_free(s->bbio);
    s->bbio = NULL;
}