From 7ca6809bfc2b8a733692361ea3cec8ea9912ca0e Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 3 Jan 2014 17:30:27 +0000 Subject: - s_bsd.c:ssl_handshake(): reset timeout handler once SSL_accept() has succeeded. Spotted by gp. git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2734 82007160-df01-0410-b94d-b575c5fd34c7 --- src/s_bsd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/s_bsd.c b/src/s_bsd.c index 5750b39..8307a02 100644 --- a/src/s_bsd.c +++ b/src/s_bsd.c @@ -263,6 +263,8 @@ ssl_handshake(int fd, struct Client *client_p) } } + comm_settimeout(&client_p->localClient->fd, 0, NULL, NULL); + if ((cert = SSL_get_peer_certificate(client_p->localClient->fd.ssl))) { int res = SSL_get_verify_result(client_p->localClient->fd.ssl); -- cgit