diff options
author | Joshua Colp <jcolp@digium.com> | 2016-02-27 08:50:20 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-02-27 08:50:20 -0600 |
commit | a3c33a99c54f0bc7d049888ef152dc86a1136485 (patch) | |
tree | b378431e26deafa24ef929bbbc6759380b89ae61 | |
parent | 170941990b457a677061efea4dc26761526455a0 (diff) | |
parent | 7e3e1ddf7ef1b0016edaebab711b874d489b9e9c (diff) |
Merge "res_sorcery_memory_cache: Fix SEGV in some CLI commands"
-rw-r--r-- | res/res_sorcery_memory_cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_sorcery_memory_cache.c b/res/res_sorcery_memory_cache.c index 0421d8158..704372e12 100644 --- a/res/res_sorcery_memory_cache.c +++ b/res/res_sorcery_memory_cache.c @@ -1832,7 +1832,7 @@ static char *sorcery_memory_cache_expire(struct ast_cli_entry *e, int cmd, struc } } - if (a->argc > 6) { + if (a->argc < 5 || a->argc > 6) { return CLI_SHOWUSAGE; } @@ -1886,7 +1886,7 @@ static char *sorcery_memory_cache_stale(struct ast_cli_entry *e, int cmd, struct } } - if (a->argc > 6) { + if (a->argc < 5 || a->argc > 6) { return CLI_SHOWUSAGE; } @@ -1945,7 +1945,7 @@ static char *sorcery_memory_cache_populate(struct ast_cli_entry *e, int cmd, str } } - if (a->argc > 5) { + if (a->argc != 5) { return CLI_SHOWUSAGE; } |