From: William Lallemand Date: Wed, 22 Nov 2017 15:41:26 +0000 (+0100) Subject: BUG/MEDIUM: cache fix cli_kws structure X-Git-Tag: v1.8.0~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e899af89b5f76bb79efae9fa3d7dda23d7a6f537;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: cache fix cli_kws structure The cli_kws structure was not ended and was causing undefined behavior. --- diff --git a/src/cache.c b/src/cache.c index c26b3a6a92..3491015204 100644 --- a/src/cache.c +++ b/src/cache.c @@ -920,10 +920,8 @@ static int cli_io_handler_show_cache(struct appctx *appctx) } static struct cli_kw_list cli_kws = {{},{ - { { "show", "cache", NULL }, - "show cache : show cache status", - cli_parse_show_cache, cli_io_handler_show_cache, NULL, - }, + { { "show", "cache", NULL }, "show cache : show cache status", cli_parse_show_cache, cli_io_handler_show_cache, NULL, NULL }, + {{},} }};