From b7398a49188b5b08ea72932454f31ef96970c3bc Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 12 Nov 2016 19:04:41 +0000 Subject: [PATCH] Do not execute commands for a client until it has identified, fixes problem reported by Frank Terbeck. --- server.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server.c b/server.c index 88dd0822..176cafcb 100644 --- a/server.c +++ b/server.c @@ -194,8 +194,10 @@ server_loop(void) do { items = cmdq_next(NULL); - TAILQ_FOREACH(c, &clients, entry) - items += cmdq_next(c); + TAILQ_FOREACH(c, &clients, entry) { + if (c->flags & CLIENT_IDENTIFIED) + items += cmdq_next(c); + } } while (items != 0); server_client_loop();