Christophe Fergeau 06bb88145c Fix corner-case when using VNC+SASL+SPICE
Similarly to the commit 764eb39d1b6 fixing VNC+SASL+QXL, when starting
QEMU with SPICE but no SASL, and at the same time VNC with SASL, then
spice_server_init() will get called without a previous call to
spice_server_set_sasl_appname(), which will cause cyrus-sasl to
try to use /etc/sasl2/spice.conf (spice-server uses "spice" as its
default appname) rather than the expected /etc/sasl2/qemu.conf.

This commit unconditionally calls spice_server_set_sasl_appname()
before calling spice_server_init() in order to use the correct appname
even if SPICE without SASL was requested on qemu command line.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Message-id: 1452607738-1521-1-git-send-email-cfergeau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2016-01-18 16:36:21 +01:00
..
2015-10-08 10:31:35 +02:00
2012-12-19 08:31:30 +01:00
2015-05-29 11:11:38 +02:00
2016-01-18 16:36:21 +01:00
2010-07-26 17:35:54 -05:00
2015-10-08 10:31:35 +02:00
2014-09-16 08:07:05 +02:00
2010-07-26 17:35:54 -05:00
2015-10-08 10:31:35 +02:00
2010-07-26 17:36:14 -05:00