aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-08-05 00:11:57 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-08-05 00:12:10 +0200
commit15ee96bcf7012f277bc324757ee16ded993affd0 (patch)
tree59d429f3b447eced637b5e9e91ca636439a3c5b9 /driver.c
parente6f625bb6d4fb3b8d7ceb89893ee194f7cddf669 (diff)
downloadfetchmail-15ee96bcf7012f277bc324757ee16ded993affd0.tar.gz
fetchmail-15ee96bcf7012f277bc324757ee16ded993affd0.tar.bz2
fetchmail-15ee96bcf7012f277bc324757ee16ded993affd0.zip
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.
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c2
1 files changed, 2 insertions, 0 deletions
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)
{