]> Pileus Git - ~andy/fetchmail/commitdiff
Repoll immediately if a protocol error happens during the authentication
authorMatthias Andree <matthias.andree@gmx.de>
Fri, 2 Mar 2007 00:36:00 +0000 (00:36 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Fri, 2 Mar 2007 00:36:00 +0000 (00:36 -0000)
attempt after a failed opportunistic TLS upgrade. Gentoo Bug #163782 comment
#9, reported by Takuto Matsuu.

svn path=/branches/BRANCH_6-3/; revision=5044

NEWS
pop3.c

diff --git a/NEWS b/NEWS
index 0d9486e07d9fdc55f59edd501fa64edff956b808..0344249a531ea756bb600bea254a9fc24a63b6db 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -48,6 +48,9 @@ fetchmail 6.3.8 (not yet released):
 * Fix pluralization of oversized-message warning mails.
 * Fix manual page: --sslcheck -> --sslcertck, and do not set trailing 
   "recommended:" in bold. Debian Bug #413059, reported by Rafal Czlonka.
+* Repoll immediately if a protocol error happens during the authentication 
+  attempt after a failed opportunistic TLS upgrade. Gentoo Bug #163782 comment 
+  #9, reported by Takuto Matsuu.
 
 # KNOWN BUGS AND WORKAROUNDS:
   (this section floats upwards through the NEWS file so it stays with the
diff --git a/pop3.c b/pop3.c
index 556053eed6ebc0ad7146736960722af6f9fbafbc..3ba6af3642402ea3e79866455bb5df0035dc695c 100644 (file)
--- a/pop3.c
+++ b/pop3.c
@@ -686,7 +686,8 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
 #ifdef SSL_ENABLE
     /* this is for servers which claim to support TLS, but actually
      * don't! */
-    if (connection_may_have_tls_errors && ok == PS_SOCKET)
+    if (connection_may_have_tls_errors
+                   && (ok == PS_SOCKET || ok == PS_PROTOCOL))
     {
        xfree(ctl->sslproto);
        ctl->sslproto = xstrdup("");