summaryrefslogtreecommitdiffstats
path: root/server/smartcard.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/smartcard.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/smartcard.c')
-rw-r--r--server/smartcard.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/smartcard.c b/server/smartcard.c
index eb2823aa..8ded1421 100644
--- a/server/smartcard.c
+++ b/server/smartcard.c
@@ -500,6 +500,9 @@ static void smartcard_connect(RedChannel *channel, RedClient *client,
rcc = red_channel_client_create(sizeof(RedChannelClient), channel, client, stream,
num_common_caps, common_caps,
num_caps, caps);
+ if (!rcc) {
+ return;
+ }
red_channel_client_ack_zero_messages_window(rcc);
}