From 87d557e066d7099ad39dbe09776d97571c009717 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 25 Mar 2022 06:14:42 +0000 Subject: [PATCH] Fix exit message if creating socket fails. --- usr.bin/tmux/server.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c index 8440a25ba08..12e43481f6c 100644 --- a/usr.bin/tmux/server.c +++ b/usr.bin/tmux/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.198 2021/06/10 07:45:43 nicm Exp $ */ +/* $OpenBSD: server.c,v 1.199 2022/03/25 06:14:42 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -228,10 +228,10 @@ server_start(struct tmuxproc *client, int flags, struct event_base *base, if (cause != NULL) { if (c != NULL) { - cmdq_append(c, cmdq_get_error(cause)); + c->exit_message = cause; c->flags |= CLIENT_EXIT; - } - free(cause); + } else + free(cause); } evtimer_set(&server_ev_tidy, server_tidy_event, NULL); -- 2.20.1