dovecot-1.2: auth: Don't assert-crash if trying to log in as mas...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jun 16 04:03:16 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/6886f1e18c76
changeset: 9132:6886f1e18c76
user: Timo Sirainen <tss at iki.fi>
date: Mon Jun 15 21:03:08 2009 -0400
description:
auth: Don't assert-crash if trying to log in as master user but with empty login username.
diffstat:
1 file changed, 5 insertions(+)
src/auth/auth-request.c | 5 +++++
diffs (15 lines):
diff -r c8bb7c18f17b -r 6886f1e18c76 src/auth/auth-request.c
--- a/src/auth/auth-request.c Mon Jun 15 20:48:12 2009 -0400
+++ b/src/auth/auth-request.c Mon Jun 15 21:03:08 2009 -0400
@@ -822,6 +822,11 @@ bool auth_request_set_username(struct au
/* it does, set it. */
login_username = t_strdup_until(username, p);
+ if (*login_username == '\0') {
+ *error_r = "Empty login username";
+ return FALSE;
+ }
+
/* username is the master user */
username = p + 1;
}
More information about the dovecot-cvs
mailing list