aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2014-09-05 14:08:48 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-09-16 08:09:03 +0200
commit07d49a53b6394941ed833486a3acb5c480d87db2 (patch)
tree7df8395a5ab1a4ac16cf92f5555fc7dd1c77cec9
parentcc35a44cf7b522b1fd0b786562b7de4b881c41b0 (diff)
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>
-rw-r--r--ui/spice-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/spice-core.c b/ui/spice-core.c
index 17a2ed3782..6467fa4776 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 ||