Fix assertion failure in SSL_set_bio()
authorMatt Caswell <matt@openssl.org>
Mon, 16 Apr 2018 13:06:56 +0000 (14:06 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 17 Apr 2018 16:06:46 +0000 (17:06 +0100)
commit1d015368ebe245c4468522d152edfd8a1069426e
treef641dd5fc4126993dbbdec70f5d38400ef2a77cf
parent8917c8909ab0f63cf5812bfc9cba7cbb9ccb5210
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: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5966)

(cherry picked from commit bd7775e14a19c326d3720f2345c2ae324409e979)
ssl/ssl_lib.c