From 55d0b2fbac078f4295069f23a42567118b8907e0 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 2 Mar 2007 00:36:00 +0000 Subject: 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. svn path=/branches/BRANCH_6-3/; revision=5044 --- pop3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pop3.c') diff --git a/pop3.c b/pop3.c index 556053ee..3ba6af36 100644 --- 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(""); -- cgit v1.2.3