commit 8a03651dd8a40afd0ac520fc3e6dcd228db24ca3
Author: Oswald Buddenhagen <o...@users.sf.net>
Date:   Sat Nov 16 14:17:06 2019 +0100

    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 );


_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to