dovecot-1.2: Don't drop automatic post-login CAPABILITY reply if...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Jun 21 17:45:15 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/80b06754846b
changeset: 7942:80b06754846b
user: Timo Sirainen <tss at iki.fi>
date: Sat Jun 21 17:45:08 2008 +0300
description:
Don't drop automatic post-login CAPABILITY reply if client sent CAPABILITY
command _before_ STARTTLS.
diffstat:
1 file changed, 4 insertions(+)
src/imap-login/client.c | 4 ++++
diffs (14 lines):
diff -r f33e8e801023 -r 80b06754846b src/imap-login/client.c
--- 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
@@ -137,6 +137,10 @@ static void client_start_tls(struct imap
client->common.tls = TRUE;
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);
More information about the dovecot-cvs
mailing list