Received: from eggs.gnu.org ([2001:4830:134:3::10]:52196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPsKC-0007dJ-SK for qemu-devel@nongnu.org; Fri, 05 Sep 2014 08:09:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPsK5-0001Kq-9s for qemu-devel@nongnu.org; Fri, 05 Sep 2014 08:09:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPsK5-0001KV-1j for qemu-devel@nongnu.org; Fri, 05 Sep 2014 08:09:01 -0400 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Fri, 5 Sep 2014 14:08:48 +0200 Message-Id: <1409918928-12324-1-git-send-email-marcandre.lureau@gmail.com> Subject: [Qemu-devel] [PATCH] spice: call qemu_spice_set_passwd() during init List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , kraxel@redhat.com 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 --- ui/spice-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index 7bb91e6..f2e6521 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 || -- 1.9.3