mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
spice: call qemu_spice_set_passwd() during init
Don't call SPICE API directly to set password given in command line, but use the internal API, saving password for later calls. This solves losing password when changing expiration in qemu monitor. https://bugzilla.redhat.com/show_bug.cgi?id=1138639 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
cc35a44cf7
commit
07d49a53b6
1 changed files with 1 additions and 1 deletions
|
@ -733,7 +733,7 @@ void qemu_spice_init(void)
|
|||
tls_ciphers);
|
||||
}
|
||||
if (password) {
|
||||
spice_server_set_ticket(spice_server, password, 0, 0, 0);
|
||||
qemu_spice_set_passwd(password, false, false);
|
||||
}
|
||||
if (qemu_opt_get_bool(opts, "sasl", 0)) {
|
||||
if (spice_server_set_sasl_appname(spice_server, "qemu") == -1 ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue