summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 27c96891d32..8fa9b332a8c 100644
--- a/usr.bin/tmux/server-client.c
+++ b/usr.bin/tmux/server-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.262 2018/11/07 08:06:28 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.263 2018/11/19 13:35:41 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -186,8 +186,14 @@ server_client_create(int fd)
TAILQ_INIT(&c->queue);
c->stdin_data = evbuffer_new();
+ if (c->stdin_data == NULL)
+ fatalx("out of memory");
c->stdout_data = evbuffer_new();
+ if (c->stdout_data == NULL)
+ fatalx("out of memory");
c->stderr_data = evbuffer_new();
+ if (c->stderr_data == NULL)
+ fatalx("out of memory");
c->tty.fd = -1;
c->title = NULL;