diff options
| author | Gesa Stupperich <gesa@tailscale.com> | 2026-02-10 11:21:24 +0000 |
|---|---|---|
| committer | Gesa Stupperich <gesa@tailscale.com> | 2026-02-11 21:26:59 +0000 |
| commit | c37f648ad27c00abcc0dc8958c8e9722ff9f9d10 (patch) | |
| tree | 1683075c8ff6d384eef98fa504f649beff1b4acc /ssh/tailssh/auditd_linux.go | |
| parent | db52827a83553122dadc36e4607e9b7a84abb2ec (diff) | |
| download | tailscale-gesa/ssh-crash-local-user.tar.xz tailscale-gesa/ssh-crash-local-user.zip | |
ssh/tailssh: store c.info and c.localUser as valuesgesa/ssh-crash-local-user
This converts the info and localUser fields on the conn from
pointers to values. I consider this an overall improvement since
both structs are small and it makes access safer in cases when
they've not yet been set.
Updates tailscale/corp#36268
Signed-off-by: Gesa Stupperich <gesa@tailscale.com>
Diffstat (limited to 'ssh/tailssh/auditd_linux.go')
| -rw-r--r-- | ssh/tailssh/auditd_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssh/tailssh/auditd_linux.go b/ssh/tailssh/auditd_linux.go index bddb901d5..a0295ca37 100644 --- a/ssh/tailssh/auditd_linux.go +++ b/ssh/tailssh/auditd_linux.go @@ -123,7 +123,7 @@ func sendAuditMessage(logf logger.Logf, msgType uint16, message string) { // logSSHLogin logs an SSH login event to auditd with whois information. func logSSHLogin(logf logger.Logf, c *conn) { - if c == nil || c.info == nil || c.localUser == nil { + if c == nil { return } |
