SSL/TLS: fix error handling when ssl ctx init for outgoing server link fails
This commit is contained in:
parent
f31c3a3aa2
commit
8e2c5816ee
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue