mirror of
https://github.com/hexchat/hexchat.git
synced 2024-11-08 20:22:30 +01:00
Fix inconsistent behavior (re)connecting on SSL
This commit is contained in:
parent
cadc51ede9
commit
fd47adf595
@ -748,7 +748,6 @@ server_connect_success (server *serv)
|
||||
|
||||
/* it'll be a memory leak, if connection isn't terminated by
|
||||
server_cleanup() */
|
||||
serv->ssl = _SSL_socket (serv->ctx, serv->sok);
|
||||
if ((err = _SSL_set_verify (serv->ctx, ssl_cb_verify, NULL)))
|
||||
{
|
||||
EMIT_SIGNAL (XP_TE_CONNFAIL, serv->server_session, err, NULL,
|
||||
@ -756,6 +755,7 @@ server_connect_success (server *serv)
|
||||
server_cleanup (serv); /* ->connecting = FALSE */
|
||||
return;
|
||||
}
|
||||
serv->ssl = _SSL_socket (serv->ctx, serv->sok);
|
||||
/* FIXME: it'll be needed by new servers */
|
||||
/* send(serv->sok, "STLS\r\n", 6, 0); sleep(1); */
|
||||
set_nonblocking (serv->sok);
|
||||
|
Loading…
Reference in New Issue
Block a user