Commit e63c33d8 authored by Steve Holme's avatar Steve Holme
Browse files

imap: Fixed incorrect comparison for STARTTLS in imap_endofresp()

Corrected the comparison type in addition to commit 1dac29fa.
parent 94336d3c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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? */