From 8a03651dd8a40afd0ac520fc3e6dcd228db24ca3 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sat, 16 Nov 2019 14:17:06 +0100 Subject: [PATCH] re-nest conditions in socket_fd_cb() conn->state == SCK_STARTTLS implies conn->ssl != NULL. --- src/socket.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/socket.c b/src/socket.c index 37fd318..4e64515 100644 --- a/src/socket.c +++ b/src/socket.c @@ -1063,11 +1063,11 @@ socket_fd_cb( int events, void *aux ) conf_wakeup( &conn->fd_timeout, conn->conf->timeout ); #ifdef HAVE_LIBSSL - if (conn->state == SCK_STARTTLS) { - start_tls_p2( conn ); - return; - } if (conn->ssl) { + if (conn->state == SCK_STARTTLS) { + start_tls_p2( conn ); + return; + } if (do_queued_write( conn ) < 0) return; socket_fill( conn );