diff options
author | Christian Pointner <equinox@helsinki.at> | 2010-10-01 21:46:28 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2010-10-01 21:46:28 (GMT) |
commit | 1f6363f31ae1cd54f3fbe7717f0bb51df4bc6e25 (patch) | |
tree | 7992b3ad96d19d64de939a7314da179e623f04f9 | |
parent | 02299eca637a17e8ba23e7b90fdb13f6a7289899 (diff) |
fixed memory error at client handling
-rw-r--r-- | switchctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |