]> arthur.barton.de Git - ngircd-alex.git/commitdiff
SSL/TLS: fix error handling when ssl ctx init for outgoing server link fails
authorFlorian Westphal <fw@strlen.de>
Sun, 17 May 2009 19:27:27 +0000 (21:27 +0200)
committerFlorian Westphal <fw@strlen.de>
Sun, 17 May 2009 19:27:27 +0000 (21:27 +0200)
src/ngircd/conn.c

index c6095a31c613bc5ca127d55b8723e15b836f1cca..4c03877a8f5e843f21211a990e6b61f3a187899c 100644 (file)
@@ -1722,6 +1722,7 @@ New_Server( int Server , ng_ipaddr_t *dest)
                Conn_Close( new_sock, "Could not initialize SSL for outgoing connection", NULL, false );
                Init_Conn_Struct( new_sock );
                Conf_Server[Server].conn_id = NONE;
+               return;
        }
 #endif
        NumConnections++;