mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-28 17:49:36 -04:00
BUG/MINOR: error on unknown statement in ring section.
Previously unknown statements were silently ignored.
This commit is contained in:
parent
dcd58afaf1
commit
9f2ff3a700
1 changed files with 5 additions and 0 deletions
|
|
@ -437,6 +437,11 @@ int cfg_parse_ring(const char *file, int linenum, char **args, int kwm)
|
|||
goto err;
|
||||
}
|
||||
}
|
||||
else {
|
||||
ha_alert("parsing [%s:%d] : unknown statement '%s'.\n", file, linenum, args[0]);
|
||||
err_code |= ERR_ALERT | ERR_FATAL;
|
||||
goto err;
|
||||
}
|
||||
|
||||
err:
|
||||
return err_code;
|
||||
|
|
|
|||
Loading…
Reference in a new issue