mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-27 12:06:31 -08:00
ssh/tailssh: fix observed crash in Tailscale SSH
Updates tailscale/corp#36268 Change-Id: Ie9da0da59808a5475dc41c67376ee73ccd254486 Signed-off-by: Brad Fitzpatrick <[email protected]>
This commit is contained in:
1 parent
63d563e734
commit
d720330c32
1 file changed
+1
-1
@@ -736,7 +736,7 @@ func (c *conn) isStillValid() bool {
|
||||
if !a.Accept && a.HoldAndDelegate == "" {
|
||||
return false
|
||||
}
|
||||
return c.localUser.Username == localUser
|
||||
return c.localUser != nil && c.localUser.Username == localUser
|
||||
}
|
||||
|
||||
// checkStillValid checks that the conn is still valid per the latest SSHPolicy.
|
||||
|
||||
Reference in new issue
Block a user