Skip to content
Snippets Groups Projects
Commit 3b69e8bc authored by Zachary Amsden's avatar Zachary Amsden Committed by Anthony Liguori
Browse files

When using stdio monitor and VNC display, one can set or clear a VNC password;...

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: default avatarZachary Amsden <zamsden@redhat.com>
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent af0f38c5
No related branches found
No related tags found
No related merge requests found
......@@ -2193,6 +2193,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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment