Skip to content
Snippets Groups Projects
Commit 8b8db2e3 authored by Travis Glenn Hansen's avatar Travis Glenn Hansen
Browse files

fixing empty channel segfault

parent b11c1270
No related branches found
No related tags found
No related merge requests found
......@@ -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")) {
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment