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 23a180cade)
This commit is contained in:
Rodrigo Ramírez Norambuena
2015-04-12 11:08:30 -03:00
committed by Matt Jordan
parent 7d43d85bea
commit 07e729cc7b

View File

@@ -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) {