From 15ee96bcf7012f277bc324757ee16ded993affd0 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 5 Aug 2010 00:11:57 +0200 Subject: Apply timeout to getauth() methods. This is to fix detecting timeouts during TLS negotiation, which is part of getauth() in STARTTLS-like modes. Reported by Thomas Jarosch. --- driver.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'driver.c') diff --git a/driver.c b/driver.c index db8d52b8..bccaf663 100644 --- a/driver.c +++ b/driver.c @@ -1167,7 +1167,9 @@ static int do_session( stage = STAGE_GETAUTH; if (ctl->server.base_protocol->getauth) { + set_timeout(mytimeout); err = (ctl->server.base_protocol->getauth)(mailserver_socket, ctl, buf); + set_timeout(0); if (err != 0) { -- cgit v1.2.3