mirror of
https://git.zx2c4.com/wireguard-go
synced 2025-09-18 20:57:50 +02:00
device: return errors from ipc scanner
The code as written will drop any read errors on the floor. Fix that. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
parent
fcc8ad05df
commit
675aae2423
@ -393,7 +393,7 @@ func (device *Device) IpcSetOperation(r io.Reader) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return scanner.Err()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (device *Device) IpcGet() (string, error) {
|
func (device *Device) IpcGet() (string, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user