]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: cache fix cli_kws structure
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 22 Nov 2017 15:41:26 +0000 (16:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 Nov 2017 15:56:58 +0000 (16:56 +0100)
The cli_kws structure was not ended and was causing undefined behavior.

src/cache.c

index c26b3a6a92d8013dfd612f25273d7d54822a7e75..349101520475f9339267b1c5bfd86d7e4d2f3766 100644 (file)
@@ -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 },
+       {{},}
 }};