# HG changeset patch # User Timo Sirainen # Date 1452265467 -7200 # Node ID a52368764cfe93f48e73086eee235880b9831337 # Parent db146dda35bc45b35e265da58b9a48c8277f0fa5 lib-settings: If SET_UINT_OCT has invalid value, we ignored the error and returned garbage value. diff -r db146dda35bc -r a52368764cfe src/lib-settings/settings-parser.c --- a/src/lib-settings/settings-parser.c Fri Jan 08 17:02:56 2016 +0200 +++ b/src/lib-settings/settings-parser.c Fri Jan 08 17:04:27 2016 +0200 @@ -344,6 +344,7 @@ if (str_to_ullong_oct(value, &octal) < 0) { ctx->error = p_strconcat(ctx->parser_pool, "Invalid number: ", value, NULL); + return -1; } *result_r = (unsigned int)octal; return 0;