diff options
author | 2015-11-03 15:07:36 +0000 | |
---|---|---|
committer | 2015-11-03 15:07:36 +0000 | |
commit | 278b4bd805a6fb4833ad6a7023a8718197a18008 (patch) | |
tree | 3090ef5364d629f4ad71ecbab2c3272ad8b51776 | |
parent | Don't allow the user to enter GPT partition names too large to fit (diff) | |
download | wireguard-openbsd-278b4bd805a6fb4833ad6a7023a8718197a18008.tar.xz wireguard-openbsd-278b4bd805a6fb4833ad6a7023a8718197a18008.zip |
Detach the client we are looping over, from Thomas Adam.
-rw-r--r-- | usr.bin/tmux/cmd-attach-session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-attach-session.c b/usr.bin/tmux/cmd-attach-session.c index 3aca8fcb45c..a196e8d0e08 100644 --- a/usr.bin/tmux/cmd-attach-session.c +++ b/usr.bin/tmux/cmd-attach-session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-attach-session.c,v 1.47 2015/10/31 14:51:15 nicm Exp $ */ +/* $OpenBSD: cmd-attach-session.c,v 1.48 2015/11/03 15:07:36 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -139,7 +139,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); } } |