=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-attach-session.c,v retrieving revision 1.48 retrieving revision 1.49 diff -u -r1.48 -r1.49 --- src/usr.bin/tmux/cmd-attach-session.c 2015/11/03 15:07:36 1.48 +++ src/usr.bin/tmux/cmd-attach-session.c 2015/11/05 23:32:21 1.49 @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-attach-session.c,v 1.48 2015/11/03 15:07:36 nicm Exp $ */ +/* $OpenBSD: cmd-attach-session.c,v 1.49 2015/11/05 23:32:21 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -108,7 +108,7 @@ 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); } }