From dcdccf83338654e41281b3b4a8f1c8d2e0621a13 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 5 Nov 2015 23:32:21 +0000 Subject: [PATCH] Same bug as last commit, but in the other copy of the loop in this file... --- cmd-attach-session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd-attach-session.c b/cmd-attach-session.c index cb1f589e..46133923 100644 --- a/cmd-attach-session.c +++ b/cmd-attach-session.c @@ -108,7 +108,7 @@ cmd_attach_session(struct cmd_q *cmdq, const char *tflag, int dflag, int rflag, TAILQ_FOREACH(c_loop, &clients, entry) { if (c_loop->session != s || c == c_loop) continue; - proc_send_s(c->peer, MSG_DETACH, s->name); + proc_send_s(c_loop->peer, MSG_DETACH, s->name); } }