From 78bed738e1a8c3bbffaa4de6015187741cc384ac Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Sun, 18 Oct 2020 19:30:14 -0700 Subject: vncv: pick an auth type that we support We used to pick the highest auth type regardless of whether we supported it. Now we filter down to types that we support. --- sys/src/cmd/vnc/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/vnc/auth.c b/sys/src/cmd/vnc/auth.c index 58d4f42a1..1a19c12a1 100644 --- a/sys/src/cmd/vnc/auth.c +++ b/sys/src/cmd/vnc/auth.c @@ -77,7 +77,7 @@ sectype38(Vnc *v) type == ANoAuth ? "None" : type == AVncAuth ? "VNC" : "Unknown"); } - if(type > auth) + if(type > auth && type <= AVncAuth) auth = type; } return auth; -- cgit v1.2.3