summaryrefslogtreecommitdiffstats
path: root/server/inputs_channel.c
diff options
context:
space:
mode:
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);
}