projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ef9233
)
When using stdio monitor and VNC display, one can set or clear a VNC password; this...
author
Zachary Amsden
<zamsden@redhat.com>
Thu, 30 Jul 2009 10:15:01 +0000
(
00:15
-1000)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Mon, 24 Aug 2009 13:01:40 +0000
(08:01 -0500)
Signed-off-by: Zachary Amsden <zamsden@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vnc.c
patch
|
blob
|
history
diff --git
a/vnc.c
b/vnc.c
index 9dbe82ac06a77c7f93e5cda851aaa9b88bcffcf1..5eaef6a3e26dd3a33ba788b4c7e09396aeb71e65 100644
(file)
--- a/
vnc.c
+++ b/
vnc.c
@@
-2274,6
+2274,11
@@
int vnc_display_password(DisplayState *ds, const char *password)
if (password && password[0]) {
if (!(vs->password = qemu_strdup(password)))
return -1;
+ if (vs->auth == VNC_AUTH_NONE) {
+ vs->auth = VNC_AUTH_VNC;
+ }
+ } else {
+ vs->auth = VNC_AUTH_NONE;
}
return 0;