dovecot-1.1: 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:39 EEST 2009
details: http://hg.dovecot.org/dovecot-1.1/rev/5d5a428e70cd
changeset: 8306:5d5a428e70cd
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 f296ce9a70a1 -r 5d5a428e70cd src/auth/auth-request.c
--- a/src/auth/auth-request.c Mon Jun 15 20:46:51 2009 -0400
+++ b/src/auth/auth-request.c Mon Jun 15 21:03:08 2009 -0400
@@ -820,6 +820,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