[TLS] SSL_shutdown() only if handshake finished

avoid noise in logs due to calling SSL_shutdown() on a connection
that has not yet completed TLS handshake
personal/stbuehler/mod-csrf-old
Glenn Strauss 7 years ago
parent ccd817d3c9
commit 156bea3859

@ -183,7 +183,7 @@ static void connection_handle_shutdown(server *srv, connection *con) {
#ifdef USE_OPENSSL
server_socket *srv_sock = con->srv_socket;
if (srv_sock->is_ssl) {
if (srv_sock->is_ssl && SSL_is_init_finished(con->ssl)) {
int ret, ssl_r;
unsigned long err;
ERR_clear_error();

Loading…
Cancel
Save