From d871ebf5d72614845cf65446dace934417c60325 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 22 Jul 2008 17:03:51 +0100 Subject: [PATCH] Check vnc_display_port, not vnc_display, for failure. This fixes a bug introduced in 7e90700420eddad9298774fc4d12ed112f0d70f2 Add vncunused option. [etc.] --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5