projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vmstate: port fw_cfg device
[qemu]
/
vnc.c
diff --git
a/vnc.c
b/vnc.c
index
9dbe82a
..
5eaef6a
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;