diff options
-rw-r--r-- | src/conf-parser.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/conf-parser.c b/src/conf-parser.c index 970877650d..a99c70596b 100644 --- a/src/conf-parser.c +++ b/src/conf-parser.c @@ -131,8 +131,12 @@ static int next_assignment( if (r < 0) return r; - if (func) - return func(filename, line, section, lvalue, ltype, rvalue, data, userdata); + if (r > 0) { + if (func) + return func(filename, line, section, lvalue, ltype, rvalue, data, userdata); + + return 0; + } /* Warn about unknown non-extension fields. */ if (!relaxed && !startswith(lvalue, "X-")) |