summaryrefslogtreecommitdiffstats
path: root/server-client.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2018-11-19 14:02:41 +0000
committerThomas Adam <thomas@xteddy.org>2018-11-19 14:02:41 +0000
commitefd01f3bfd84d4a692cfbf746517f891d4ecaa27 (patch)
treeb2ed5d4a20750075b483711c63493dffc81d6348 /server-client.c
parenta7da2357a512d5a325aa12ca0d544df85530a4d3 (diff)
parent749f67b7d801eed03345fef9c04206fbd079c3cb (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/server-client.c b/server-client.c
index 9495f003..41e4a1a5 100644
--- a/server-client.c
+++ b/server-client.c
@@ -184,8 +184,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;