From e63c33d88d8c6fda91b11afe44e18fdb05b94c17 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Mon, 25 Feb 2013 09:43:23 +0000 Subject: imap: Fixed incorrect comparison for STARTTLS in imap_endofresp() Corrected the comparison type in addition to commit 1dac29fa83a9. --- lib/imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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? */ -- cgit v1.2.3