diff options
author | nicm <nicm> | 2015-06-09 07:07:06 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-06-09 07:07:06 +0000 |
commit | a412dd616f07167610e3290e1cfc0e40eb9ec664 (patch) | |
tree | 933ab8c153a8960da845338ae8ecfc2086f46112 | |
parent | c4e811e51936edab66803a7b9e099ac135e6e19b (diff) |
Fix loop comparison broken in last commit, from Thomas Adam.
-rw-r--r-- | cmd-attach-session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-attach-session.c b/cmd-attach-session.c index b2a2f8c5..cb58d4e2 100644 --- a/cmd-attach-session.c +++ b/cmd-attach-session.c @@ -100,7 +100,7 @@ cmd_attach_session(struct cmd_q *cmdq, const char *tflag, int dflag, int rflag, * the same session as currently attached to. */ TAILQ_FOREACH(c_loop, &clients, entry) { - if (c_loop->session != s || c == c) + if (c_loop->session != s || c == c_loop) continue; server_write_client(c, MSG_DETACH, c_loop->session->name, |