dovecot-2.1: imapc: Check for when to prefer LOGIN to AUTHENTICA...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Dec 2 13:12:34 EET 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/6591f7783d55
changeset: 13790:6591f7783d55
user: Timo Sirainen <tss at iki.fi>
date: Fri Dec 02 13:12:16 2011 +0200
description:
imapc: Check for when to prefer LOGIN to AUTHENTICATE was wrong.
diffstat:
src/lib-imap-client/imapc-connection.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 8e5c9f3ca158 -r 6591f7783d55 src/lib-imap-client/imapc-connection.c
--- a/src/lib-imap-client/imapc-connection.c Thu Dec 01 09:24:58 2011 +0200
+++ b/src/lib-imap-client/imapc-connection.c Fri Dec 02 13:12:16 2011 +0200
@@ -732,7 +732,7 @@
imapc_command_set_flags(cmd, IMAPC_COMMAND_FLAG_PRELOGIN);
if ((set->master_user == NULL &&
- need_literal(set->username) && need_literal(set->password)) ||
+ !need_literal(set->username) && !need_literal(set->password)) ||
(conn->capabilities & IMAPC_CAPABILITY_AUTH_PLAIN) == 0) {
/* We can use LOGIN command */
imapc_command_sendf(cmd, "LOGIN %s %s",
More information about the dovecot-cvs
mailing list