From 1f6363f31ae1cd54f3fbe7717f0bb51df4bc6e25 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 1 Oct 2010 21:46:28 +0000 Subject: fixed memory error at client handling diff --git a/switchctl.c b/switchctl.c index 97202b7..cb54077 100644 --- a/switchctl.c +++ b/switchctl.c @@ -795,7 +795,8 @@ int main_loop(int switch_fd, int cmd_listen_fd, options_t* opt) break; } - lst = lst->next; + if(lst) + lst = lst->next; } if(cmd_q && !cmd_q->sent) -- cgit v0.10.2