fix 'invalid command' logic
authorKevin P. Fleming <kpfleming@digium.com>
Mon, 3 Oct 2005 21:01:29 +0000 (21:01 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Mon, 3 Oct 2005 21:01:29 +0000 (21:01 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6710 65c4cc65-6c06-0410-ace0-fbb531ad65f3

manager.c

index 1df35bd..be58e3f 100755 (executable)
--- 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;