From: Rodrigo Ramírez Norambuena Date: Sun, 12 Apr 2015 14:08:30 +0000 (-0300) Subject: cdr_pgsql: Fix CLI "cdr show pgsql status" command. X-Git-Tag: 13.4.0-rc1~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07e729cc7b79b2aa7f3da1f034ef75bf5f882c5e;p=thirdparty%2Fasterisk.git cdr_pgsql: Fix CLI "cdr show pgsql status" command. The command always showed the usage information. * Fix the error in command validation for CLI_SHOWUSAGE. ASTERISK-24959 #close Reported by: Rodrigo Ramirez Norambuena Change-Id: I584f0936bb01001336a468a55c1d05d79fe795d5 (cherry picked from commit 23a180cade51e84b9def65b05759c3cb9feba225) --- diff --git a/cdr/cdr_pgsql.c b/cdr/cdr_pgsql.c index e9e9fc3d84..094a492546 100644 --- a/cdr/cdr_pgsql.c +++ b/cdr/cdr_pgsql.c @@ -143,7 +143,7 @@ static char *handle_cdr_pgsql_status(struct ast_cli_entry *e, int cmd, struct as return NULL; } - if (a->argc != 3) + if (a->argc != e->args) return CLI_SHOWUSAGE; if (connected) {