]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: Fixed error handling in passdb/userdb dict config parsing
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 5 Jun 2016 12:11:56 +0000 (15:11 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 5 Jun 2016 12:11:56 +0000 (15:11 +0300)
src/auth/db-dict.c

index baaebf02b906d6a754b0d3cfa230dcaa8a555bec..9f395f9a664698f01d7ab03df14a413420867ed4 100644 (file)
@@ -193,8 +193,9 @@ static bool parse_section(const char *type, const char *name,
                                ctx->cur_key->parsed_format =
                                        DB_DICT_VALUE_FORMAT_JSON;
                        } else {
-                               return t_strconcat("Unknown key format: ",
-                                                  ctx->cur_key->format, NULL);
+                               *errormsg = t_strconcat("Unknown key format: ",
+                                       ctx->cur_key->format, NULL);
+                               return FALSE;
                        }
                }
                ctx->cur_key = NULL;