aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-10-18 11:26:52 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-10-18 11:26:52 +0000
commitc6667a5a2aa4895596a76fc0aeb68f37a322bc44 (patch)
tree8e1e0c18cf3828076c65fa1b7d8eaf67df520b57
parent877247e077e2702c2581f93140a31a083d7d1233 (diff)
downloadfetchmail-c6667a5a2aa4895596a76fc0aeb68f37a322bc44.tar.gz
fetchmail-c6667a5a2aa4895596a76fc0aeb68f37a322bc44.tar.bz2
fetchmail-c6667a5a2aa4895596a76fc0aeb68f37a322bc44.zip
Sunil's patch to guard SSL use.
svn path=/trunk/; revision=3740
-rw-r--r--pop3.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pop3.c b/pop3.c
index e9ffbbaa..8fd07d11 100644
--- a/pop3.c
+++ b/pop3.c
@@ -247,7 +247,9 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
}
#ifdef SSL_ENABLE
- if (has_ssl && !ctl->use_ssl)
+ if (has_ssl
+ && !ctl->use_ssl
+ && (ctl->server.authenticate == A_ANY))
{
char *realhost;