diff options
Diffstat (limited to 'server/red_worker.c')
-rw-r--r-- | server/red_worker.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/red_worker.c b/server/red_worker.c index 3a0bdf4e..9e5624ba 100644 --- a/server/red_worker.c +++ b/server/red_worker.c @@ -9773,6 +9773,9 @@ static CommonChannelClient *common_channel_client_create(int size, RedChannelClient *rcc = red_channel_client_create(size, &common->base, client, stream, num_common_caps, common_caps, num_caps, caps); + if (!rcc) { + return NULL; + } CommonChannelClient *common_cc = (CommonChannelClient*)rcc; common_cc->worker = common->worker; common_cc->id = common->worker->id; |