summaryrefslogtreecommitdiffstats
path: root/server/inputs_channel.c
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-05-20 13:27:31 +0300
committerYonit Halperin <yhalperi@redhat.com>2012-05-21 09:08:50 +0300
commit038ae54b1c4c43a63d346bdfe2db52b48f20a22e (patch)
tree5ebaecb5475850a35154e7551ed7f7c3b3003c2d /server/inputs_channel.c
parent1b9162b5cfe4043df851e8ecaa503b8261ba5868 (diff)
downloadspice-038ae54b1c4c43a63d346bdfe2db52b48f20a22e.tar.gz
spice-038ae54b1c4c43a63d346bdfe2db52b48f20a22e.tar.xz
spice-038ae54b1c4c43a63d346bdfe2db52b48f20a22e.zip
server: handle red_channel_client_create returning NULL
Diffstat (limited to 'server/inputs_channel.c')
-rw-r--r--server/inputs_channel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/inputs_channel.c b/server/inputs_channel.c
index ad247f47..e14e995a 100644
--- a/server/inputs_channel.c
+++ b/server/inputs_channel.c
@@ -502,6 +502,9 @@ static void inputs_connect(RedChannel *channel, RedClient *client,
stream,
num_common_caps, common_caps,
num_caps, caps);
+ if (!icc) {
+ return;
+ }
icc->motion_count = 0;
inputs_pipe_add_init(&icc->base);
}