]> Git Repo - qemu.git/commit - vnc.c
vnc_refresh: return if vd->timer is NULL
authorStefano Stabellini <[email protected]>
Mon, 11 Jan 2010 17:30:50 +0000 (17:30 +0000)
committerAnthony Liguori <[email protected]>
Tue, 12 Jan 2010 19:24:52 +0000 (13:24 -0600)
commit83755c173f4608764e3ee92428247d1c5e962e6a
tree61c44752de9cb73c489d436e0aca7bafeb01b5f7
parentdbd483242c2e6dfaacb9fd3d20c333bbdad87243
vnc_refresh: return if vd->timer is NULL

Hi all,
calling vnc_update_client in vnc_refresh might have the unlikely side
effect of setting vd->timer = NULL, if the last vnc client disconnected.
In this case we have to return from vnc_refresh without updating the
timer, otherwise we cause a segfault.

Signed-off-by: Stefano Stabellini <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
vnc.c
This page took 0.025403 seconds and 4 git commands to generate.