From: Timo Sirainen Date: Wed, 25 Apr 2012 20:34:29 +0000 (+0300) Subject: passdb static: Don't crash if password/nopassword isn't set. X-Git-Tag: 2.1.6~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d0cb8dfc63d704f06376aa324550b3ca4eac82f;p=thirdparty%2Fdovecot%2Fcore.git passdb static: Don't crash if password/nopassword isn't set. --- diff --git a/src/auth/passdb-static.c b/src/auth/passdb-static.c index b5308091e0..584efada7f 100644 --- a/src/auth/passdb-static.c +++ b/src/auth/passdb-static.c @@ -25,7 +25,7 @@ static_save_fields(struct auth_request *request, const char **password_r) passdb_template_export(module->tmpl, request); if (module->static_password_tmpl == NULL) - *password_r = NULL; + *password_r = ""; else { table = auth_request_get_var_expand_table(request, NULL); var_expand(str, module->static_password_tmpl, table);