projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcd58af
)
BUG/MINOR: error on unknown statement in ring section.
author
Emeric Brun
<ebrun@haproxy.com>
Fri, 29 May 2020 13:47:52 +0000
(15:47 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Sun, 31 May 2020 08:37:54 +0000
(10:37 +0200)
Previously unknown statements were silently ignored.
src/sink.c
patch
|
blob
|
history
diff --git
a/src/sink.c
b/src/sink.c
index
c65513a
..
50f0352
100644
(file)
--- a/
src/sink.c
+++ b/
src/sink.c
@@
-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;