summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-09-21 20:12:51 +0200
committerAlexander Larsson <alexl@redhat.com>2010-09-21 20:12:51 +0200
commit485ba90b0303f6c8b7995f22936560b518eec012 (patch)
treeafb947e45208a1a73e89654630e37d532b78f2af /server
parent763e05ee30c67014c3e843b8e4bc5a7d7e9aac74 (diff)
server: Handle NULL image in red_update_streamable
A NULL src bitmap means self_bitmap, which is not a stream, so abort.
Diffstat (limited to 'server')
-rw-r--r--server/red_worker.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/red_worker.c b/server/red_worker.c
index 5a2477a3..f307aefc 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -3130,7 +3130,8 @@ static inline void red_update_streamable(RedWorker *worker, Drawable *drawable,
}
image = red_drawable->u.copy.src_bitmap;
- if (image->descriptor.type != SPICE_IMAGE_TYPE_BITMAP) {
+ if (image == NULL ||
+ image->descriptor.type != SPICE_IMAGE_TYPE_BITMAP) {
return;
}