From: Ian Jackson Date: Tue, 22 Jul 2008 16:03:51 +0000 (+0100) Subject: Check vnc_display_port, not vnc_display, for failure. X-Git-Tag: xen-3.3.0-rc1~8 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d871ebf5d72614845cf65446dace934417c60325;p=qemu-xen-4.0-testing.git Check vnc_display_port, not vnc_display, for failure. This fixes a bug introduced in 7e90700420eddad9298774fc4d12ed112f0d70f2 Add vncunused option. [etc.] --- diff --git a/vl.c b/vl.c index 5f4ae591..5bd75fbf 100644 --- a/vl.c +++ b/vl.c @@ -8732,7 +8732,7 @@ int main(int argc, char **argv) xenstore_read_vncpasswd(domid, password, sizeof(password)); vnc_display_password(ds, password); vnc_display_port = vnc_display_open(ds, vnc_display, vncunused); - if (vnc_display < 0) + if (vnc_display_port < 0) exit(1); } else #if defined(CONFIG_CURSES)