summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-11-08 01:31:06 +0200
committerAlon Levy <alevy@redhat.com>2010-11-08 01:31:06 +0200
commita23baac120918b046c873821e38a6fa0e0c93847 (patch)
tree133ed08790aa27a30513305cf9fed519bfb815b0
parent39c15784b18ff65f85b4c4507a5eef82d4ece4e9 (diff)
downloadspice-a23baac120918b046c873821e38a6fa0e0c93847.tar.gz
spice-a23baac120918b046c873821e38a6fa0e0c93847.tar.xz
spice-a23baac120918b046c873821e38a6fa0e0c93847.zip
server/red_channel: protect red_channel_push from NULL
-rw-r--r--server/red_channel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/red_channel.c b/server/red_channel.c
index eca9266a..f1361cbc 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -475,6 +475,10 @@ void red_channel_push(RedChannel *channel)
{
PipeItem *pipe_item;
+ if (!channel) {
+ return;
+ }
+
if (!channel->during_send) {
channel->during_send = TRUE;
} else {