dovecot-2.1: login: Show empty username in disconnect message.
dovecot at dovecot.org
dovecot at dovecot.org
Sat Nov 19 23:15:55 EET 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/6e87e399ccd7
changeset: 13735:6e87e399ccd7
user: Timo Sirainen <tss at iki.fi>
date: Sat Nov 19 23:15:19 2011 +0200
description:
login: Show empty username in disconnect message.
diffstat:
src/login-common/client-common.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r b1955fdf2ef8 -r 6e87e399ccd7 src/login-common/client-common.c
--- a/src/login-common/client-common.c Sat Nov 19 23:14:59 2011 +0200
+++ b/src/login-common/client-common.c Sat Nov 19 23:15:19 2011 +0200
@@ -416,8 +416,12 @@
key = var_get_key(str);
for (i = 0; table[i].key != '\0'; i++) {
if (table[i].key == key) {
- return table[i].value != NULL &&
- table[i].value[0] != '\0';
+ if (table[i].value == NULL)
+ return FALSE;
+ if (table[i].value[0] != '\0')
+ return TRUE;
+ /* "" key - hide except in username */
+ return key == 'u' || key == 'n';
}
}
return FALSE;
More information about the dovecot-cvs
mailing list