From 426ccca40447c366014104fd799f7a0efbb5de97 Mon Sep 17 00:00:00 2001 From: Dany LE Date: Mon, 25 Sep 2023 17:19:43 +0200 Subject: [PATCH] fix: missing else statement when checking for client id --- broadcast/broadcast.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/broadcast/broadcast.c b/broadcast/broadcast.c index e6452af..c8d76d7 100644 --- a/broadcast/broadcast.c +++ b/broadcast/broadcast.c @@ -320,6 +320,7 @@ int main(int argc, char **argv) { M_LOG(MODULE_NAME, "Client %d is already subscript to this channel", request.header.client_id); } + else { // store user name bc_client = NULL; @@ -507,4 +508,4 @@ int main(int argc, char **argv) } (void)close(fd); return 0; -} \ No newline at end of file +}