]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
device: return errors from ipc scanner
authorJosh Bleecher Snyder <josh@tailscale.com>
Fri, 15 Jan 2021 21:54:55 +0000 (13:54 -0800)
committerJosh Bleecher Snyder <josh@tailscale.com>
Mon, 25 Jan 2021 16:47:48 +0000 (08:47 -0800)
The code as written will drop any read errors on the floor.
Fix that.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
device/uapi.go

index 370ad4eb8e337cac1bd66836f6e03262069f22d9..dbb60b686fa97b06528a16d06fe28ec7ec18d7be 100644 (file)
@@ -393,7 +393,7 @@ func (device *Device) IpcSetOperation(r io.Reader) error {
                }
        }
 
-       return nil
+       return scanner.Err()
 }
 
 func (device *Device) IpcGet() (string, error) {