mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-14 06:32:11 -04:00
BUG/MINOR: log-forward: fail on unknown keywords
The log-forward section silently ignores junk and unknown keywords, make it fail! No backport is needed.
This commit is contained in:
parent
0354b658f0
commit
f9feec2813
1 changed files with 5 additions and 0 deletions
|
|
@ -3688,6 +3688,11 @@ int cfg_parse_log_forward(const char *file, int linenum, char **args, int kwm)
|
|||
goto out;
|
||||
}
|
||||
}
|
||||
else {
|
||||
ha_alert("parsing [%s:%d] : unknown keyword '%s' in log-forward section.\n", file, linenum, args[0]);
|
||||
err_code |= ERR_ALERT | ERR_ABORT;
|
||||
goto out;
|
||||
}
|
||||
out:
|
||||
return err_code;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue