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;