net/netcheck: remove mistaken double Mutex.Unlock in error path

Thanks to @dotaheor for noticing.

Fixes #751
This commit is contained in:
Brad Fitzpatrick 2020-09-11 07:55:49 -07:00
parent f65eb4e5c1
commit 40e12c17ec

View File

@ -236,7 +236,6 @@ func (c *Client) ReceiveSTUNPacket(pkt []byte, src netaddr.IPPort) {
tx, addr, port, err := stun.ParseResponse(pkt)
if err != nil {
c.mu.Unlock()
if _, err := stun.ParseBindingRequest(pkt); err == nil {
// This was probably our own netcheck hairpin
// check probe coming in late. Ignore.