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:
Willy Tarreau 2020-09-16 15:04:33 +02:00
parent 0354b658f0
commit f9feec2813

View File

@ -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;
}