summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2009-05-17 21:27:27 +0200
committerFlorian Westphal <fw@strlen.de>2009-05-17 21:27:27 +0200
commit8e2c5816eec58a5de63399a54773dda6a5729c36 (patch)
tree5b60b6217ba133d66d7689b99077adb7a73d42ec
parentf31c3a3aa283bd6a34386e3c2fcdcad9ab36e5c4 (diff)
downloadngircd-8e2c5816eec58a5de63399a54773dda6a5729c36.tar.gz
ngircd-8e2c5816eec58a5de63399a54773dda6a5729c36.zip
SSL/TLS: fix error handling when ssl ctx init for outgoing server link fails
-rw-r--r--src/ngircd/conn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index c6095a31..4c03877a 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -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++;