summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-11-08 01:31:06 +0200
committerAlon Levy <alevy@redhat.com>2011-02-07 19:22:44 +0200
commitf45d17d68b06e6492a3981e5a117218ba71853f5 (patch)
tree18e3452c655e4b8cd920499a1c3dbcd5a7466db0 /server
parent3476fe428d43505da828a8c6bfdd65e7f320325c (diff)
downloadspice-f45d17d68b06e6492a3981e5a117218ba71853f5.tar.gz
spice-f45d17d68b06e6492a3981e5a117218ba71853f5.tar.xz
spice-f45d17d68b06e6492a3981e5a117218ba71853f5.zip
server/red_channel: protect red_channel_push from NULL
Diffstat (limited to 'server')
-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 62ae4a6a..93338b63 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -481,6 +481,10 @@ void red_channel_push(RedChannel *channel)
{
PipeItem *pipe_item;
+ if (!channel) {
+ return;
+ }
+
if (!channel->during_send) {
channel->during_send = TRUE;
} else {