dovecot-2.2: auth: Don't crash if passdb passwd-file is used wit...

dovecot at dovecot.org dovecot at dovecot.org
Wed Feb 19 22:54:45 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/0378721ea755
changeset: 17149:0378721ea755
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Feb 19 14:54:16 2014 -0800
description:
auth: Don't crash if passdb passwd-file is used without any userdbs.

diffstat:

 src/auth/db-passwd-file.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 0ecc40091784 -r 0378721ea755 src/auth/db-passwd-file.c
--- a/src/auth/db-passwd-file.c	Sat Feb 15 10:41:29 2014 +0900
+++ b/src/auth/db-passwd-file.c	Wed Feb 19 14:54:16 2014 -0800
@@ -308,6 +308,7 @@
 	/* warn about missing userdb fields only when there aren't any other
 	   userdbs. */
 	db->userdb_warn_missing =
+		array_is_created(&global_auth_settings->userdbs) &&
 		array_count(&global_auth_settings->userdbs) == 1;
 }
 


More information about the dovecot-cvs mailing list