summaryrefslogtreecommitdiff
path: root/accel-pppd/cli/show_sessions.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-01-20 14:43:27 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-01-20 14:43:27 +0400
commitf7b2ca85f9cda5d542aa0fe638926682ae86ddf4 (patch)
treeff6fd28449792a8b6dd5bc856eaaf12bdfa9791f /accel-pppd/cli/show_sessions.c
parent98557211e85c5f08c43b3b40bb006ac3d78e791e (diff)
downloadaccel-ppp-f7b2ca85f9cda5d542aa0fe638926682ae86ddf4.tar.gz
accel-ppp-f7b2ca85f9cda5d542aa0fe638926682ae86ddf4.zip
cli: fix 'show sessions match'
Diffstat (limited to 'accel-pppd/cli/show_sessions.c')
-rw-r--r--accel-pppd/cli/show_sessions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/cli/show_sessions.c b/accel-pppd/cli/show_sessions.c
index 90199864..4caded1d 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) {