diff options
| author | Brad Fitzpatrick <bradfitz@tailscale.com> | 2026-01-23 07:07:18 -0800 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@tailscale.com> | 2026-01-23 07:07:18 -0800 |
| commit | d720330c32c2da1337bd63fb7f4617ab7bbcfeb2 (patch) | |
| tree | b4ef8b3e86f7e58e8e4ec9bec78b2ebd727748ab /ssh | |
| parent | 63d563e7340b4712b9f2933f663057ce2dcfa4a4 (diff) | |
| download | tailscale-bradfitz/tailssh_crash.tar.xz tailscale-bradfitz/tailssh_crash.zip | |
ssh/tailssh: fix observed crash in Tailscale SSHbradfitz/tailssh_crash
Updates tailscale/corp#36268
Change-Id: Ie9da0da59808a5475dc41c67376ee73ccd254486
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Diffstat (limited to 'ssh')
| -rw-r--r-- | ssh/tailssh/tailssh.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh/tailssh/tailssh.go b/ssh/tailssh/tailssh.go index 91e1779bf..289807ea3 100644 --- a/ssh/tailssh/tailssh.go +++ b/ssh/tailssh/tailssh.go @@ -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. |
