Fix exit message if creating socket fails.

This commit is contained in:
nicm 2022-03-25 06:14:42 +00:00 committed by Nicholas Marriott
parent d4eda7f9e5
commit 98de5784a0

View File

@ -230,9 +230,9 @@ 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;
}
} else
free(cause);
}