diff options
| author | Nicholas Marriott <nicm@openbsd.org> | 2009-10-14 09:29:10 +0000 |
|---|---|---|
| committer | Nicholas Marriott <nicm@openbsd.org> | 2009-10-14 09:29:10 +0000 |
| commit | adad5574996cabc2e91bd267d2a86b3c6cec584d (patch) | |
| tree | dd2b52339970691224a219a1e248ecef351b77c6 | |
| parent | ad566a86de2368aa4a42cd26dafecc066cff41eb (diff) | |
| download | rtmux-adad5574996cabc2e91bd267d2a86b3c6cec584d.tar.gz rtmux-adad5574996cabc2e91bd267d2a86b3c6cec584d.tar.bz2 rtmux-adad5574996cabc2e91bd267d2a86b3c6cec584d.zip | |
Don't allow cmd_lookup_client to test clients without a session.
| -rw-r--r-- | cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -458,7 +458,8 @@ cmd_lookup_client(const char *name) u_int i; for (i = 0; i < ARRAY_LENGTH(&clients); i++) { - if ((c = ARRAY_ITEM(&clients, i)) == NULL) + c = ARRAY_ITEM(&clients, i); + if (c == NULL || c->session == NULL) continue; path = c->tty.path; |