From: Mathias Hall-Andersen Date: Thu, 27 Jul 2017 21:51:07 +0000 (+0200) Subject: Fixed shadowing bug X-Git-Tag: 0.0.20180514~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fb00e8045b4e3f5466c0ea9b829e9865008c09b;p=thirdparty%2Fwireguard-go.git Fixed shadowing bug --- diff --git a/src/config.go b/src/config.go index 9751a18..72a604f 100644 --- a/src/config.go +++ b/src/config.go @@ -153,7 +153,7 @@ func ipcSetOperation(device *Device, socket *bufio.ReadWriter) *IPCError { return &IPCError{Code: ipcErrorInvalidValue} } device.mutex.RLock() - peer, _ := device.peers[pubKey] + peer, _ = device.peers[pubKey] device.mutex.RUnlock() if peer == nil { peer = device.NewPeer(pubKey)