dovecot-2.2: auth: Fixed crash with auth_verbose_passwords!=no a...

dovecot at dovecot.org dovecot at dovecot.org
Sat Oct 26 18:07:52 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/1d222bd0a49c
changeset: 16883:1d222bd0a49c
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Oct 26 18:07:45 2013 +0300
description:
auth: Fixed crash with auth_verbose_passwords!=no and non-plaintext auth

diffstat:

 src/auth/auth-request.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r 8a8e63a351f5 -r 1d222bd0a49c src/auth/auth-request.c
--- a/src/auth/auth-request.c	Sat Oct 26 18:06:26 2013 +0300
+++ b/src/auth/auth-request.c	Sat Oct 26 18:07:45 2013 +0300
@@ -1783,6 +1783,9 @@
 	const char *p, *log_type = request->set->verbose_passwords;
 	unsigned int max_len = 1024;
 
+	if (request->mech_password == NULL)
+		return;
+
 	p = strchr(log_type, ':');
 	if (p != NULL) {
 		if (str_to_uint(p+1, &max_len) < 0)


More information about the dovecot-cvs mailing list