diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-08-05 00:11:57 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-08-05 00:12:10 +0200 |
commit | 15ee96bcf7012f277bc324757ee16ded993affd0 (patch) | |
tree | 59d429f3b447eced637b5e9e91ca636439a3c5b9 /driver.c | |
parent | e6f625bb6d4fb3b8d7ceb89893ee194f7cddf669 (diff) | |
download | fetchmail-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |