]> Pileus Git - ~andy/fetchmail/commitdiff
No longer complain about invalid sslproto "" when POP3 CAPA probe fails.
authorMatthias Andree <matthias.andree@gmx.de>
Sun, 10 Jun 2007 22:55:36 +0000 (22:55 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Sun, 10 Jun 2007 22:55:36 +0000 (22:55 -0000)
Fixes Debian Bug#421446 (Holger Leskien), Novell Bug #247233 (Jon Nelson).
Thanks to Matthias Strauß for a configuration to reproduce the issue.

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

NEWS
TODO.txt
pop3.c

diff --git a/NEWS b/NEWS
index 7cb24633cdea11f0244897c39ac2a56b26ebb000..cfaaeea7ad20305164bd55de9408f33f8a669898 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -42,7 +42,7 @@ be removed from a 6.4.0 or newer release.)
 
 --------------------------------------------------------------------------------
 
-fetchmail 6.3.X (not yet released, may become .8.1 or .9):
+fetchmail 6.3.9 (not yet released):
 
 # FIXES:
 * The configure script will additionally check for 'dn_skipname', to fix build
@@ -52,6 +52,9 @@ fetchmail 6.3.X (not yet released, may become .8.1 or .9):
   NOTE: this is a bit of a hack, since we twist the HAVE_RES_SEARCH result, but
   res_search() and dn_skipname() are only used together and scheduled for
   removal in future versions, so this is probably fine.
+* No longer complain about invalid sslproto "" when POP3 CAPA probe fails.
+  Fixes Debian Bug#421446 (Holger Leskien), Novell Bug #247233 (Jon Nelson).
+  Thanks to Matthias Strauß for a configuration to reproduce the issue.
 
 # TRANSLATION UPDATES:
 * Polish (Jakub Bogusz)
index e92c6e521e2282f8acc2b46624eff906704b7614..2cc1e3ee38970ed02e7e07babf86ed3e84e17072 100644 (file)
--- a/TODO.txt
+++ b/TODO.txt
@@ -1,9 +1,6 @@
 soon:
 - find a solution for the "invalid header" discards message problem
   (escape headers and stuff reminder into body)
-- https://bugzilla.novell.com/show_bug.cgi?id=247233
-  (same as http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=421446)
-  might be our fallback of setting sslproto to ""? But what triggers it?
 
 6.4:
 - make the SSL default v3 (rather than v23).
diff --git a/pop3.c b/pop3.c
index 17f66c70ebb956ef02b6b6ca654df00910444515..9b101f03c18e9d6d2837d7fd62deba0feaf0671c 100644 (file)
--- a/pop3.c
+++ b/pop3.c
@@ -449,7 +449,7 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
                        report(stderr, GT_("TLS is mandatory for this session, but server refused CAPA command.\n"));
                        report(stderr, GT_("The CAPA command is however necessary for TLS.\n"));
                        return ok;
-                   } else {
+                   } else if (maybe_tls(ctl)) {
                        /* defeat opportunistic STLS */
                        xfree(ctl->sslproto);
                        ctl->sslproto = xstrdup("");
@@ -526,7 +526,7 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
                   }
               }
           }
-       }
+       } /* maybe_tls() */
 #endif /* SSL_ENABLE */
 
        /*