]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-ssl-iostream: Shutdown connection cleanly whenever i/ostream is destroyed
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 6 Jul 2018 08:25:07 +0000 (11:25 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 6 Jul 2018 16:24:20 +0000 (16:24 +0000)
commitdad79730115007324356a27d9d73f216217ec4c6
tree0a6db0de9cbb5e4ebc4dca78d292e034aa8f8bbf
parent0e9bfbbf6863b7a11f0fd414db81d2332edc6307
lib-ssl-iostream: Shutdown connection cleanly whenever i/ostream is destroyed

Do this while both istream and ostream still exist. Fixes crash where
openssl_iostream_destroy() attempts to flush the shutdown, but ssl_input
is NULL and it crashes.
src/lib-ssl-iostream/istream-openssl.c
src/lib-ssl-iostream/ostream-openssl.c