]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-settings: If SET_UINT_OCT has invalid value, we ignored the error and returned...
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 8 Jan 2016 15:04:27 +0000 (17:04 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 8 Jan 2016 15:04:27 +0000 (17:04 +0200)
src/lib-settings/settings-parser.c

index ae42aa2c6594262ced4bca1e824d418129381a71..54c9c98c9595669789c31b264b7d58c55c5b39d0 100644 (file)
@@ -344,6 +344,7 @@ get_octal(struct setting_parser_context *ctx, const char *value,
        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;