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.
front
Ori Bernstein 2020-10-18 19:30:14 -07:00
parent 87385accde
commit 78bed738e1
1 changed files with 1 additions and 1 deletions

View File

@ -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;