summaryrefslogtreecommitdiff
path: root/src/core/servers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/servers.c')
-rw-r--r--src/core/servers.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/servers.c b/src/core/servers.c
index 887efd4b..85bc203b 100644
--- a/src/core/servers.c
+++ b/src/core/servers.c
@@ -188,7 +188,8 @@ static void server_real_connect(SERVER_REC *server, IPADDR *ip,
port = server->connrec->proxy != NULL ?
server->connrec->proxy_port : server->connrec->port;
handle = server->connrec->use_ssl ?
- net_connect_ip_ssl(ip, port, own_ip) :
+ net_connect_ip_ssl(ip, port, own_ip, server->connrec->ssl_cert, server->connrec->ssl_pkey,
+server->connrec->ssl_cafile, server->connrec->ssl_capath, server->connrec->ssl_verify) :
net_connect_ip(ip, port, own_ip);
} else {
handle = net_connect_unix(unix_socket);
@@ -584,6 +585,11 @@ void server_connect_unref(SERVER_CONNECT_REC *conn)
g_free_not_null(conn->username);
g_free_not_null(conn->realname);
+ g_free_not_null(conn->ssl_cert);
+ g_free_not_null(conn->ssl_pkey);
+ g_free_not_null(conn->ssl_cafile);
+ g_free_not_null(conn->ssl_capath);
+
g_free_not_null(conn->channels);
g_free_not_null(conn->away_reason);