Otherwise the SSL iostream destroying may trigger debug/error logging,
which attempts to proxy logs when the stream is already closed. This
caused a panic.
doveadm_print_deinit();
doveadm_print_ostream = NULL;
- if (conn->ssl_iostream != NULL)
- ssl_iostream_destroy(&conn->ssl_iostream);
-
if (conn->log_out != NULL) {
doveadm_server_restore_logs();
o_stream_unref(&conn->log_out);
}
+ if (conn->ssl_iostream != NULL)
+ ssl_iostream_destroy(&conn->ssl_iostream);
io_remove(&conn->io);
o_stream_destroy(&conn->output);