summaryrefslogtreecommitdiffstats
path: root/cmd-queue.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2013-04-10 12:15:36 +0000
committerNicholas Marriott <nicm@openbsd.org>2013-04-10 12:15:36 +0000
commit7ada64d5f8a0df39229c41b992c0ee8ac9f0a1d7 (patch)
tree2f3d2215316518222ec508fa8f66a1a29184cb4a /cmd-queue.c
parent20f0d917beb0f774af2628ed7efe2a33cf59f42a (diff)
Fix bug where end guard in control mode was not printed after session
destroyed, from George Nachman.
Diffstat (limited to 'cmd-queue.c')
-rw-r--r--cmd-queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-queue.c b/cmd-queue.c
index b1c0a4eb..a64d332c 100644
--- a/cmd-queue.c
+++ b/cmd-queue.c
@@ -158,7 +158,7 @@ cmdq_guard(struct cmd_q *cmdq, const char *guard)
{
struct client *c = cmdq->client;
- if (c == NULL || c->session == NULL)
+ if (c == NULL)
return 0;
if (!(c->flags & CLIENT_CONTROL))
return 0;