diff options
author | 2011-02-16 20:48:00 +0100 | |
---|---|---|
committer | 2011-02-25 10:17:07 -0600 | |
commit | 74b121a007c52b435870def4b1f1e6c42042bf51 (patch) | |
tree | 14755eceb572262860a4e28f225da5cfa6beb209 | |
parent | qemu-char: Check for missing backend name (diff) | |
download | qemu-kvm-74b121a007c52b435870def4b1f1e6c42042bf51.tar.gz qemu-kvm-74b121a007c52b435870def4b1f1e6c42042bf51.tar.bz2 qemu-kvm-74b121a007c52b435870def4b1f1e6c42042bf51.zip |
vnc: Fix fatal crash with vnc reverse mode
Reverse mode is unusable:
qemu -vnc localhost:5500,reverse
crashes in vnc_refresh_server_surface because some pointers are NULL.
Fix this by calling vnc_dpy_resize (which initializes these pointers)
before calling vnc_refresh.
Cc: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | ui/vnc.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2349,6 +2349,7 @@ static void vnc_init_timer(VncDisplay *vd) vd->timer_interval = VNC_REFRESH_INTERVAL_BASE; if (vd->timer == NULL && !QTAILQ_EMPTY(&vd->clients)) { vd->timer = qemu_new_timer(rt_clock, vnc_refresh, vd); + vnc_dpy_resize(vd->ds); vnc_refresh(vd); } } |