diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-11-03 02:11:07 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-11-03 02:11:07 +0400 |
commit | 5fd5776d2175e92179461fd69f897146c151c765 (patch) | |
tree | 7685aebc90971d354435356b04d8e0878d1cdf92 /accel-pppd | |
parent | f9d7a5755e9df40409864667811a4497bbd75b63 (diff) | |
download | accel-ppp-5fd5776d2175e92179461fd69f897146c151c765.tar.gz accel-ppp-5fd5776d2175e92179461fd69f897146c151c765.zip |
cli: fix 'show sessions match' without enough arguments
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/cli/show_sessions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/cli/show_sessions.c b/accel-pppd/cli/show_sessions.c index c0fec580..983e6205 100644 --- a/accel-pppd/cli/show_sessions.c +++ b/accel-pppd/cli/show_sessions.c @@ -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 - 1) + if (i >= f_cnt - 2) return CLI_CMD_SYNTAX; match_key = find_column(f[++i]); if (!match_key) { |