From 321fb5e1cae21fff8fd22c49f9904882e63804fa Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 22 Jan 2018 09:24:03 -0500 Subject: [PATCH] fix double str_shift for 'list sessions CALLID' fixes #448 Change-Id: I9262f61eeec257abe842e532ffc8e071da89a61d --- daemon/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/cli.c b/daemon/cli.c index 1af68c888..56f1897e1 100644 --- a/daemon/cli.c +++ b/daemon/cli.c @@ -311,7 +311,7 @@ static void cli_incoming_list_callid(str *instr, struct streambuf *replybuffer) struct timeval now; char * local_addr; - if (str_shift(instr, 1)) { + if (instr->len == 0) { streambuf_printf(replybuffer, "%s\n", "More parameters required."); return; }