Mercurial > dovecot > core-2.2
changeset 20287:16fb9651df56
auth: Fixed error handling in passdb/userdb dict config parsing
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Sun, 05 Jun 2016 15:11:56 +0300 |
parents | 4d926d1e9164 |
children | 7e93c452c1a7 |
files | src/auth/db-dict.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/db-dict.c Sun Jun 05 14:54:05 2016 +0300 +++ b/src/auth/db-dict.c Sun Jun 05 15:11:56 2016 +0300 @@ -193,8 +193,9 @@ 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;