diff --git a/ui/spice-core.c b/ui/spice-core.c index 17a2ed37824160b19d35dda47c70dcd00e376ec9..6467fa477674a454e61ed5014bd3d1c766db8e78 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -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 ||