]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: cli: fix missing break in command line parser
authorWilly Tarreau <w@1wt.eu>
Wed, 29 Jan 2014 11:13:39 +0000 (12:13 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 29 Jan 2014 11:13:39 +0000 (12:13 +0100)
Yesterday's commit 12833bb ("MINOR: cli: add the new "show pools" command")
missed a "break" statement causing trouble to the "show map" command. Spotted
by Thierry Fournier.

src/dumpstats.c

index 3adfdf3cf4cff926daee363d6cfafe6447c43d3a..25997854f0375c87619ed3c9f0da61631da2f830 100644 (file)
@@ -2180,6 +2180,7 @@ static void cli_io_handler(struct stream_interface *si)
                        case STAT_CLI_O_MLOOK:
                                if (stats_map_lookup(si))
                                        appctx->st0 = STAT_CLI_PROMPT;
+                               break;
                        case STAT_CLI_O_POOLS:
                                if (stats_dump_pools_to_buffer(si))
                                        appctx->st0 = STAT_CLI_PROMPT;