diff options
author | Josh Bleecher Snyder <josh@tailscale.com> | 2021-01-26 10:35:25 -0800 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-01-26 22:40:10 +0100 |
commit | 37efdcaccfb16e47137728b5462c90d0b2ae8460 (patch) | |
tree | 65742a085905331b0e8c7501ac1c0dbc64ff2854 /device/send.go | |
parent | d3a2b74df28ea7d7e90918c4431a38853990ce72 (diff) |
device: fix shadowing of err in IpcHandle
The declaration of err in
nextByte, err := buffered.ReadByte
shadows the declaration of err in
op, err := buffered.ReadString('\n')
above. As a result, the assignments to err in
err = ipcErrorf(ipc.IpcErrorInvalid, "trailing character in UAPI get: %c", nextByte)
and in
err = device.IpcGetOperation(buffered.Writer)
do not modify the correct err variable.
Found by staticcheck.
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
Diffstat (limited to 'device/send.go')
0 files changed, 0 insertions, 0 deletions