aboutsummaryrefslogtreecommitdiffstats
path: root/smtp.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2011-05-26 01:29:34 +0200
committerMatthias Andree <matthias.andree@gmx.de>2011-05-26 02:00:30 +0200
commitcc9397414a655cab4c47de6559e69ecda06530cc (patch)
treea3487afc29da036c58b9d321804571fbfae2f72a /smtp.c
parentce36699e50f90ae17577dfd81be78f6c1b883aec (diff)
downloadfetchmail-cc9397414a655cab4c47de6559e69ecda06530cc.tar.gz
fetchmail-cc9397414a655cab4c47de6559e69ecda06530cc.tar.bz2
fetchmail-cc9397414a655cab4c47de6559e69ecda06530cc.zip
Revert SO_???TIMEO-based STARTTLS timeout handling.
This reverts commits 47c05b10018f5ec7493e4bd9f521aaa18d96f1e2 and 72ce8bce8dd655b6aefa33d0a74e883dad5202b5, the code isn't portable, for instance, Solaris does not support SO_RCVTIMEO/SO_SNDTIMEO. These socket-level options are known, but Solaris returns EAFNOSUPPORT. Reported by Jonathan Buschmann.
Diffstat (limited to 'smtp.c')
-rw-r--r--smtp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/smtp.c b/smtp.c
index 90c35173..1c99c696 100644
--- a/smtp.c
+++ b/smtp.c
@@ -313,12 +313,10 @@ int SMTP_ok(int sock, char smtp_mode, int mintimeout)
{
SIGHANDLERTYPE alrmsave;
char reply[MSGBUFSIZE], *i;
- int tmo = (mytimeout >= mintimeout) ? mytimeout : mintimeout;
/* set an alarm for smtp ok */
alrmsave = set_signal_handler(SIGALRM, null_signal_handler);
- set_timeout(tmo);
- SockTimeout(sock, tmo);
+ set_timeout(mytimeout >= mintimeout ? mytimeout : mintimeout);
smtp_response[0] = '\0';