diff options
author | June McEnroe <june@causal.agency> | 2019-10-26 01:41:03 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-10-26 01:41:03 -0400 |
commit | 2cbee2917676bab76491ccd91c846d1f02043e34 (patch) | |
tree | 2a701a1eb5ac74dc9d3d96a4c2f1ddd50f38d67d | |
parent | Disconnect client on unknown command (diff) | |
download | pounce-2cbee2917676bab76491ccd91c846d1f02043e34.tar.gz pounce-2cbee2917676bab76491ccd91c846d1f02043e34.zip |
Oops
-rw-r--r-- | client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c index 703a698..f7fff33 100644 --- a/client.c +++ b/client.c @@ -202,7 +202,7 @@ static void clientParse(struct Client *client, char *line) { for (size_t i = 0; i < ARRAY_LEN(Handlers); ++i) { if (strcmp(msg.cmd, Handlers[i].cmd)) continue; Handlers[i].fn(client, &msg); - break; + return; } client->error = true; } |