SSL/TLS: fix error handling when ssl ctx init for outgoing server link fails

This commit is contained in:
Florian Westphal 2009-05-17 21:27:27 +02:00
parent f31c3a3aa2
commit 8e2c5816ee
1 changed files with 1 additions and 0 deletions

View 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 ); Conn_Close( new_sock, "Could not initialize SSL for outgoing connection", NULL, false );
Init_Conn_Struct( new_sock ); Init_Conn_Struct( new_sock );
Conf_Server[Server].conn_id = NONE; Conf_Server[Server].conn_id = NONE;
return;
} }
#endif #endif
NumConnections++; NumConnections++;