]> git.ipfire.org Git - thirdparty/qemu.git/commit
ui/vnc: don't return an empty SASL mechlist to the client
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 11 Sep 2024 12:08:24 +0000 (13:08 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 22 Oct 2024 10:44:23 +0000 (11:44 +0100)
commit46c80446b5c1caf39a7ed2d0e426c4712f8e98d2
tree49d4e1cc2efc47acca4b5876987f781ed4f4555c
parentf8395ce8a349245c5b7e4645e34350366b0c734b
ui/vnc: don't return an empty SASL mechlist to the client

The SASL initialization phase may determine that there are no valid
mechanisms available to use. This may be because the host OS admin
forgot to install some packages, or it might be because the requested
SSF level is incompatible with available mechanisms, or other unknown
reasons.

If we return an empty mechlist to the client, they're going to get a
failure from the SASL library on their end and drop the connection.
Thus there is no point even sending this back to the client, we can
just drop the connection immediately.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
ui/vnc-auth-sasl.c