vnc: avoid possible file handler leak
commitb3c33f91732ea32e7a8391c5e61c3fc02308d822
authorGonglei <arei.gonglei@huawei.com>
Wed, 11 Mar 2015 08:21:01 +0000 (11 16:21 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 12 Mar 2015 07:22:12 +0000 (12 08:22 +0100)
tree233dff1c089c8b26294a3385d4911f5bcd494aa9
parentf76b84a04b75e98eee56e8dc277564d0fbb99018
vnc: avoid possible file handler leak

vs->lsock may equal to 0, modify the check condition,
avoid possible vs->lsock leak.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc.c