summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2020-10-18 19:30:14 -0700
committerOri Bernstein <ori@eigenstate.org>2020-10-18 19:30:14 -0700
commit78bed738e1a8c3bbffaa4de6015187741cc384ac (patch)
tree05950a47612f86f8da0b155c8141b109fa4240ba
parent87385accde5dd15a6858b8157a313f069884c9bf (diff)
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.
-rw-r--r--sys/src/cmd/vnc/auth.c2
1 files changed, 1 insertions, 1 deletions
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;