]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-settings: Fixed parsing '0' value for SET_UINT_OCT.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 8 Jan 2016 15:02:56 +0000 (17:02 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 8 Jan 2016 15:02:56 +0000 (17:02 +0200)
This was used only by service { *_listener { mode } }

src/lib-settings/settings-parser.c

index b4a90264668ade414d2fac1a9c29143b446d63b1..ae42aa2c6594262ced4bca1e824d418129381a71 100644 (file)
@@ -341,7 +341,7 @@ get_octal(struct setting_parser_context *ctx, const char *value,
        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);
        }