]> git.proxmox.com Git - qemu.git/commit
vnc: check fd before calling qemu_set_fd_handler2() in vnc_client_write()
authorYoshiaki Tamura <tamura.yoshiaki@lab.ntt.co.jp>
Fri, 20 Aug 2010 10:10:41 +0000 (19:10 +0900)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 11 Oct 2010 23:22:45 +0000 (18:22 -0500)
commitc2ccc98ceb07c009d64b7ee801f8966194510021
tree56001e47300b1d810f5e06faf4369e78b93a498f
parent8b84b68e7d6125dbfc092b806210d5940468d530
vnc: check fd before calling qemu_set_fd_handler2() in vnc_client_write()

Setting fd = -1 to qemu_set_fd_handler2() causes bus error at FD_SET
in main_loop_wait().

Signed-off-by: Yoshiaki Tamura <tamura.yoshiaki@lab.ntt.co.jp>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit ac71103dc6b408775ae72067790ab367912f75ec)
ui/vnc.c