From d4bf5408a7d80740ff4b0d6f188f764e80f0dfbd Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Mon, 3 Oct 2005 21:01:29 +0000 Subject: [PATCH] fix 'invalid command' logic git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6710 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manager.c b/manager.c index 1df35bdae7..be58e3fbd9 100755 --- a/manager.c +++ b/manager.c @@ -1281,7 +1281,7 @@ static int process_message(struct mansession *s, struct message *m) } tmp = tmp->next; } - if (!ret) + if (!tmp) astman_send_error(s, m, "Invalid/unknown command"); else ret = 0;