When using stdio monitor and VNC display, one can set or clear a VNC password; this should set or turn off VNC authentication as well.
Signed-off-by: Zachary Amsden <zamsden@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
7ef923310a
commit
52c18be9e9
5
vnc.c
5
vnc.c
|
@ -2274,6 +2274,11 @@ int vnc_display_password(DisplayState *ds, const char *password)
|
||||||
if (password && password[0]) {
|
if (password && password[0]) {
|
||||||
if (!(vs->password = qemu_strdup(password)))
|
if (!(vs->password = qemu_strdup(password)))
|
||||||
return -1;
|
return -1;
|
||||||
|
if (vs->auth == VNC_AUTH_NONE) {
|
||||||
|
vs->auth = VNC_AUTH_VNC;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
vs->auth = VNC_AUTH_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue