Browse Source

[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 6 years ago
parent
commit
156bea3859
  1. 2
      src/connections.c

2
src/connections.c

@ -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