]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
passdb static: Don't crash if password/nopassword isn't set.
authorTimo Sirainen <tss@iki.fi>
Wed, 25 Apr 2012 20:34:29 +0000 (23:34 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 25 Apr 2012 20:34:29 +0000 (23:34 +0300)
src/auth/passdb-static.c

index b5308091e07eff094eb98182d31f742f668d7a51..584efada7f9d6ec829a6aaa89650bbe69cc0f5d8 100644 (file)
@@ -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);