Marc-André Lureau b5dc0d7d56 vnc: call sasl_server_init() only when required
VNC server is calling sasl_server_init() during startup of QEMU, even
if SASL auth has not been enabled.

This may create undesirable warnings like "Could not find keytab file:
/etc/qemu/krb5.tab" when the user didn't configure SASL on host and
started VNC server.

Instead, only initialize SASL when needed. Note that HMP/QMP "change
vnc" calls vnc_display_open() again, which will initialize SASL if
needed.

Fix assignment in if condition, while touching this code.

Related to:
https://bugzilla.redhat.com/show_bug.cgi?id=1609327

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20180907063634.359-1-marcandre.lureau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2018-10-01 11:29:03 +02:00
..
2017-10-17 10:25:42 +02:00
2017-11-10 14:27:29 +01:00
2018-08-24 08:40:10 +02:00
2017-07-27 14:23:09 +02:00
2018-05-18 09:13:37 +02:00
2018-04-09 10:40:47 +02:00
2018-10-01 11:29:03 +02:00
2018-03-05 08:44:11 +01:00
2017-10-17 10:25:42 +02:00
2018-03-13 11:17:29 -06:00
2017-07-27 14:23:09 +02:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00