From: Timo Sirainen Date: Sun, 5 Jun 2016 12:11:56 +0000 (+0300) Subject: auth: Fixed error handling in passdb/userdb dict config parsing X-Git-Tag: 2.3.0.rc1~3558 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=84ec868b0ebf94a67359acbc611b28b5e06d08bd;p=thirdparty%2Fdovecot%2Fcore.git auth: Fixed error handling in passdb/userdb dict config parsing --- diff --git a/src/auth/db-dict.c b/src/auth/db-dict.c index baaebf02b9..9f395f9a66 100644 --- a/src/auth/db-dict.c +++ b/src/auth/db-dict.c @@ -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;