mirror of
https://github.com/irssi/irssi.git
synced 2024-10-13 05:03:45 -04:00
fix crash on tls error
This commit is contained in:
parent
1e54b92220
commit
308400154b
@ -232,6 +232,7 @@ static void server_real_connect(SERVER_REC *server, IPADDR *ip,
|
|||||||
handle = net_start_ssl(server);
|
handle = net_start_ssl(server);
|
||||||
if (handle == NULL) {
|
if (handle == NULL) {
|
||||||
net_sendbuffer_destroy(server->handle, TRUE);
|
net_sendbuffer_destroy(server->handle, TRUE);
|
||||||
|
server->handle = NULL;
|
||||||
} else {
|
} else {
|
||||||
server->handle->handle = handle;
|
server->handle->handle = handle;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user