From 8b8db2e38331822fdb9988b3322d42b4a720f313 Mon Sep 17 00:00:00 2001 From: Travis Glenn Hansen <travisghansen@yahoo.com> Date: Wed, 16 May 2012 15:38:35 -0600 Subject: [PATCH] fixing empty channel segfault --- fanout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fanout.c b/fanout.c index e2f7523..b18de4f 100644 --- a/fanout.c +++ b/fanout.c @@ -566,7 +566,7 @@ void client_process_input_buffer (struct client *c) } else { action = strtok (line, " "); channel = strtok (NULL, " "); - if (action == NULL) { + if (action == NULL || channel == NULL) { fanout_debug (3, "received garbage from client\n"); } else { if ( ! strcmp (action, "announce")) { -- GitLab