vnc: fix qemu crash when not configure vnc option
authorGonglei <arei.gonglei@huawei.com>
Fri, 30 Jan 2015 02:14:34 +0000 (10:14 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 16 Feb 2015 07:47:59 +0000 (08:47 +0100)
commit88428b7a93347efc51be015cc12cb71fab3976a3
tree1b8800846a7c71958cad60a5f8650844528994f2
parentcd2d5541271f1934345d8ca42f5fafff1744eee7
vnc: fix qemu crash when not configure vnc option

Add missing vnc options: to, ipv4, ipv6 and fix
qemu crash.

Reproducer:
$ x86_64-softmmu/qemu-system-x86_64
qemu-system-x86_64: Invalid parameter 'to'
Segmentation fault (core dumped)

BTW the patch fix the below bug:
https://bugs.launchpad.net/qemu/+bug/1414222

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