mirror of
https://github.com/tailscale/tailscale.git
synced 2026-05-05 12:16:44 +02:00
ssh/tailssh: fix observed crash in Tailscale SSH
Updates tailscale/corp#36268 Change-Id: Ie9da0da59808a5475dc41c67376ee73ccd254486 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
63d563e734
commit
d720330c32
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user