]> git.proxmox.com Git - qemu.git/commit
vnc: fix possible uninitialized removals
authorTim Hardeck <thardeck@suse.de>
Mon, 21 Jan 2013 10:04:45 +0000 (11:04 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 21 Jan 2013 19:33:12 +0000 (13:33 -0600)
commit6fd8e79af031d8cfc0eb02d40d03281917fcb27b
tree6fc46c4b8eef0ac65e9a9f3ac1f446dacdf83f1d
parent7536ee4bc3da7e9b7fdadba5ba6ade63eaace430
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>
ui/vnc.c
ui/vnc.h