Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7942:80b06754846b HEAD
Don't drop automatic post-login CAPABILITY reply if client sent CAPABILITY
command _before_ STARTTLS.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 21 Jun 2008 17:45:08 +0300 |
parents | f33e8e801023 |
children | 138a64b6dffe |
files | src/imap-login/client.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap-login/client.c Sat Jun 21 16:11:26 2008 +0300 +++ b/src/imap-login/client.c Sat Jun 21 17:45:08 2008 +0300 @@ -138,6 +138,10 @@ client->common.secured = TRUE; client_set_title(client); + /* CAPABILITY sent before STARTTLS can't be trusted */ + client->common.master_login_flags &= + ~LOGIN_IMAP_FLAG_FULL_CAPABILITY_SENT; + client->common.fd = fd_ssl; i_stream_unref(&client->common.input); o_stream_unref(&client->output);