aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pop3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pop3.c b/pop3.c
index 961692a5..65055ac8 100644
--- a/pop3.c
+++ b/pop3.c
@@ -600,6 +600,7 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
* don't! */
if (connection_may_have_tls_errors && ok == PS_SOCKET)
{
+ xfree(ctl->sslproto);
ctl->sslproto = xstrdup("");
/* repoll immediately without TLS */
ok = PS_REPOLL;