fix 'invalid command' logic

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6710 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-10-03 21:01:29 +00:00
parent d167235344
commit d4bf5408a7

View File

@@ -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;