summaryrefslogtreecommitdiffhomepage
path: root/util/execqueue
diff options
context:
space:
mode:
authorAndrew Dunham <andrew@du.nham.ca>2024-01-05 11:23:30 -0500
committerAndrew Dunham <andrew@du.nham.ca>2024-01-05 11:44:17 -0500
commit46bdbb38780b854403fb54592b840d281dff9110 (patch)
tree77adab0b0efb7813e447985e93106900a69e4cde /util/execqueue
parent29e98e18f84c96e66314a695cf0a0bff778bdabb (diff)
downloadtailscale-46bdbb38780b854403fb54592b840d281dff9110.tar.xz
tailscale-46bdbb38780b854403fb54592b840d281dff9110.zip
cmd/tailscaled, tsnet: don't return an interface containing a nil pointer
This tripped me up when I was testing something and wrote: if conn != nil { conn.Close() } In netstack mode, when an error occurred we were getting a non-nil error and a non-nil interface that contained a nil pointer. Instead, just return a nil interface value. Updates #cleanup Signed-off-by: Andrew Dunham <andrew@du.nham.ca> Change-Id: Id9ef3dd24529e0e8c53adc60ed914c31fbb10cc4
Diffstat (limited to 'util/execqueue')
0 files changed, 0 insertions, 0 deletions