提交 f7b2ca85 编写于 作者: K Kozlov Dmitry

cli: fix 'show sessions match'

上级 98557211
......@@ -148,7 +148,7 @@ static int show_ses_exec(const char *cmd, char * const *f, int f_cnt, void *cli)
return CLI_CMD_OK;
}
} else if (!strcmp(f[i], "match")) {
if (i == f_cnt - 2)
if (i == f_cnt - 1)
return CLI_CMD_SYNTAX;
match_key = find_column(f[++i]);
if (!match_key) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册