qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 1/9] vnc: abort on unknown options


From: Eduardo Habkost
Subject: [Qemu-devel] [PATCH 1/9] vnc: abort on unknown options
Date: Fri, 6 Feb 2009 19:08:52 -0200

Currently, if the user specifies an authentication mode that is not
compiled in, qemu silently falls back to disabling authentication.

Aborting instead of falling back to an unsafe mode is the right thing
to do.

Signed-off-by: Eduardo Habkost <address@hidden>
---
 vnc.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/vnc.c b/vnc.c
index 68df599..5c2368c 100644
--- a/vnc.c
+++ b/vnc.c
@@ -2441,6 +2441,9 @@ int vnc_display_open(DisplayState *ds, const char 
*display)
                return -1;
            }
 #endif
+       } else {
+           fprintf(stderr, "Invalid vnc option: %s\n", options);
+           return -1;
        }
     }
 
-- 
1.6.0.2.GIT





reply via email to

[Prev in Thread] Current Thread [Next in Thread]