diff options
author | Kozlov Dmitry <dima@server> | 2012-11-15 14:21:35 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-01-24 23:51:33 +0400 |
commit | 45026d43f6cfbe0f6efa446b47629cb948db5a9d (patch) | |
tree | be206f8519ba8169f7ca8e87f0cfc66b63ef9a74 /accel-pppd/cli/show_sessions.c | |
parent | 227298572c50013225752ff3af13ffc724d26ddf (diff) | |
download | accel-ppp-45026d43f6cfbe0f6efa446b47629cb948db5a9d.tar.gz accel-ppp-45026d43f6cfbe0f6efa446b47629cb948db5a9d.zip |
merge upstream
Diffstat (limited to 'accel-pppd/cli/show_sessions.c')
-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 9e0ad2fb..2140decd 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) { |