aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/imap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/imap.c b/lib/imap.c
index 5d94548a3..8f1112d36 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -380,7 +380,7 @@ static bool imap_endofresp(struct connectdata *conn, char *line, size_t len,
wordlen++;
/* Does the server support the STARTTLS capability? */
- if(wordlen >= 8 && !memcmp(line, "STARTTLS", 8))
+ if(wordlen == 8 && !memcmp(line, "STARTTLS", 8))
imapc->tls_supported = TRUE;
/* Has the server explicitly disabled clear text authentication? */