mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
80e0c8c39b
commit
5db8378a77
1 changed files with 1 additions and 0 deletions
1
ui/vnc.c
1
ui/vnc.c
|
@ -2480,6 +2480,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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue