summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2010-10-01 21:46:28 (GMT)
committerChristian Pointner <equinox@helsinki.at>2010-10-01 21:46:28 (GMT)
commit1f6363f31ae1cd54f3fbe7717f0bb51df4bc6e25 (patch)
tree7992b3ad96d19d64de939a7314da179e623f04f9
parent02299eca637a17e8ba23e7b90fdb13f6a7289899 (diff)
fixed memory error at client handling
-rw-r--r--switchctl.c3
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)