]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
ui/vnc: don't check for SSF after SASL authentication on UNIX sockets
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 11 Sep 2024 12:17:04 +0000 (13:17 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 22 Oct 2024 10:44:23 +0000 (11:44 +0100)
Although we avoid requesting an SSF when querying SASL mechanisms for a
UNIX socket client, we still mistakenly checked for availability of an
SSF once the SASL auth process is complete.

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

index 43515447fb7691fa55afaac18b6ad7ec918d5be0..25f6b4b7765f68e938e62ef515f80c2b57c8ad1d 100644 (file)
@@ -628,7 +628,7 @@ void start_auth_sasl(VncState *vs)
             goto authabort;
         }
     } else {
-        vs->sasl.wantSSF = 1;
+        vs->sasl.wantSSF = !vnc_socket_is_unix(vs->sioc);
     }
 
     memset (&secprops, 0, sizeof secprops);