From: Willy Tarreau Date: Wed, 29 Jan 2014 11:13:39 +0000 (+0100) Subject: BUG/MINOR: cli: fix missing break in command line parser X-Git-Tag: v1.5-dev22~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4efb353e470675da8a65cc24c8918e68c05ab9d4;p=thirdparty%2Fhaproxy.git BUG/MINOR: cli: fix missing break in command line parser 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. --- diff --git a/src/dumpstats.c b/src/dumpstats.c index 3adfdf3cf4..25997854f0 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -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;