[Spice-devel] [PATCH 18/23] server/red_channel: protect red_channel_push from NULL
Alon Levy
alevy at redhat.com
Mon Feb 7 09:31:20 PST 2011
---
server/red_channel.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/server/red_channel.c b/server/red_channel.c
index 62ae4a6..93338b6 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 {
--
1.7.4
More information about the Spice-devel
mailing list