Mercurial > dovecot > core-2.2
changeset 19545:db146dda35bc
lib-settings: Fixed parsing '0' value for SET_UINT_OCT.
This was used only by service { *_listener { mode } }
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Fri, 08 Jan 2016 17:02:56 +0200 |
parents | 7342f778f152 |
children | a52368764cfe |
files | src/lib-settings/settings-parser.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-settings/settings-parser.c Fri Jan 08 13:24:32 2016 +0200 +++ b/src/lib-settings/settings-parser.c Fri Jan 08 17:02:56 2016 +0200 @@ -341,7 +341,7 @@ if (*value != '0') return get_uint(ctx, value, result_r); - if (str_to_ullong_oct(value+1, &octal) < 0) { + if (str_to_ullong_oct(value, &octal) < 0) { ctx->error = p_strconcat(ctx->parser_pool, "Invalid number: ", value, NULL); }