]> git.proxmox.com Git - qemu.git/commit
vnc: fix segfault in vnc_display_pw_expire()
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 24 May 2012 08:55:01 +0000 (10:55 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 30 May 2012 02:28:44 +0000 (10:28 +0800)
commit1643f2b232628905e8f32965ff36a87bd53b93c5
treec03f698a9925bf08c98264a4ff1382c72be45c4a
parent1352672860399b40965b5093dd026688979e60a5
vnc: fix segfault in vnc_display_pw_expire()

NULL pointer dereference in case no vnc server is configured.
Catch this and return -EINVAL like vnc_display_password() does.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
ui/vnc.c