vnc_refresh: calling vnc_update_client might free vs
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 25 Jan 2010 12:54:57 +0000 (12:54 +0000)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 26 Jan 2010 23:08:02 +0000 (17:08 -0600)
commitc1dd52bf750fa05ee3cb85c7fb3cf6a79557b09e
treef546e4acd750083c0e8f8c747273e5bd6d2b670f
parentcff3d73564676b4560d7452cf2cf11bb6e1b93da
vnc_refresh: calling vnc_update_client might free vs

Hi all,
this patch fixes another bug in vnc_refresh: calling vnc_update_client
might cause vs to be free()ed, in this case we cannot access vs->next
right after to examine the next item on the list.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vnc.c