diff options
author | Tim Hardeck <thardeck@suse.de> | 2013-01-21 11:04:45 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-01-21 13:33:12 -0600 |
commit | 6fd8e79af031d8cfc0eb02d40d03281917fcb27b (patch) | |
tree | 6fc46c4b8eef0ac65e9a9f3ac1f446dacdf83f1d /ui/vnc.h | |
parent | 7536ee4bc3da7e9b7fdadba5ba6ade63eaace430 (diff) |
vnc: fix possible uninitialized removals
Some VncState values are not initialized before the Websocket handshake.
If it fails QEMU segfaults during the cleanup. To prevent this behavior
intialization checks are added.
Signed-off-by: Tim Hardeck <thardeck@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'ui/vnc.h')
-rw-r--r-- | ui/vnc.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -306,6 +306,7 @@ struct VncState QEMUPutLEDEntry *led; bool abort; + bool initialized; QemuMutex output_mutex; QEMUBH *bh; Buffer jobs_buffer; |