summaryrefslogtreecommitdiffhomepage
path: root/util/execqueue/execqueue.go
diff options
context:
space:
mode:
authorAndrew Lytvynov <awly@tailscale.com>2025-11-14 13:23:25 -0800
committerGitHub <noreply@github.com>2025-11-14 13:23:25 -0800
commitc5919b4ed1f38374d51fe9e92ef57e322c31c875 (patch)
tree20e2a4770d7a7edf028854ef3ea4675a2cd03410 /util/execqueue/execqueue.go
parent888a5d4812c97a818c4cc041a3f97aae8bd81afc (diff)
downloadtailscale-c5919b4ed1f38374d51fe9e92ef57e322c31c875.tar.xz
tailscale-c5919b4ed1f38374d51fe9e92ef57e322c31c875.zip
feature/tpm: check IsZero in clone instead of just nil (#17884)
The key.NewEmptyHardwareAttestationKey hook returns a non-nil empty attestationKey, which means that the nil check in Clone doesn't trigger and proceeds to try and clone an empty key. Check IsZero instead to reduce log spam from Clone. As a drive-by, make tpmAvailable check a sync.Once because the result won't change. Updates #17882 Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
Diffstat (limited to 'util/execqueue/execqueue.go')
0 files changed, 0 insertions, 0 deletions