]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: error on unknown statement in ring section.
authorEmeric Brun <ebrun@haproxy.com>
Fri, 29 May 2020 13:47:52 +0000 (15:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 31 May 2020 08:37:54 +0000 (10:37 +0200)
Previously unknown statements were silently ignored.

src/sink.c

index c65513a06334d8b7770495db06541b0bddb8661b..50f035263a9dadd62a395105ae02e72943e202fa 100644 (file)
@@ -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;