diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-10-05 17:15:21 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-10-05 17:15:21 +0000 |
commit | 08bcd6978cd6f699ec688dbea8c8a7ea43002e0c (patch) | |
tree | 2823ceaf0e810eb03f920d4cb186effc322cbf72 | |
parent | 4789a4ee1f27034484fbf9622db8b5740d1cd51f (diff) | |
download | rtmux-08bcd6978cd6f699ec688dbea8c8a7ea43002e0c.tar.gz rtmux-08bcd6978cd6f699ec688dbea8c8a7ea43002e0c.tar.bz2 rtmux-08bcd6978cd6f699ec688dbea8c8a7ea43002e0c.zip |
Skip NULL entries in the sessions list when choosing the next session,
from Simon Olofsson.
-rw-r--r-- | server-fn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server-fn.c b/server-fn.c index af443e8f..a166541d 100644 --- a/server-fn.c +++ b/server-fn.c @@ -368,7 +368,7 @@ server_next_session(struct session *s) s_out = NULL; for (i = 0; i < ARRAY_LENGTH(&sessions); i++) { s_loop = ARRAY_ITEM(&sessions, i); - if (s_loop == s) + if (s_loop == NULL || s_loop == s) continue; if (s_out == NULL || timercmp(&s_loop->activity_time, &s_out->activity_time, <)) |