]> Pileus Git - ~andy/fetchmail/commitdiff
Sunil's patch to guard SSL use.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 18 Oct 2002 11:26:52 +0000 (11:26 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 18 Oct 2002 11:26:52 +0000 (11:26 -0000)
svn path=/trunk/; revision=3740

pop3.c

diff --git a/pop3.c b/pop3.c
index e9ffbbaa22685dd60d3a4bd0873ac5103e5bc250..8fd07d11008fc0ee17079f0b56fcfbd836bd5bd6 100644 (file)
--- 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;