diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-01-20 14:43:27 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-01-20 14:43:27 +0400 |
commit | f7b2ca85f9cda5d542aa0fe638926682ae86ddf4 (patch) | |
tree | ff6fd28449792a8b6dd5bc856eaaf12bdfa9791f /accel-pppd | |
parent | 98557211e85c5f08c43b3b40bb006ac3d78e791e (diff) | |
download | accel-ppp-f7b2ca85f9cda5d542aa0fe638926682ae86ddf4.tar.gz accel-ppp-f7b2ca85f9cda5d542aa0fe638926682ae86ddf4.zip |
cli: fix 'show sessions match'
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 9019986..4caded1 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 - 2) + if (i == f_cnt - 1) return CLI_CMD_SYNTAX; match_key = find_column(f[++i]); if (!match_key) { |