spice: add sanity check for spice ports
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 7 Jul 2011 15:04:17 +0000 (17:04 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 20 Jul 2011 08:08:53 +0000 (10:08 +0200)
commit1ae1d578d81f3a221aa4767ef03260926a4f306c
tree8ba476bd2086a7509b6f1751059478e331bafb96
parent39f25a6d2d50ecfa4f6fee0f8d2adbb00c0933a4
spice: add sanity check for spice ports

Make sure at least one port (port=.. or tls-port=...)
is specified.  Also apply range checks to the port numbers.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/spice-core.c