diff --git a/vendor/github.com/mdlayher/wifi/client_linux.go b/vendor/github.com/mdlayher/wifi/client_linux.go index 4d2c4e99..3bce7199 100644 --- a/vendor/github.com/mdlayher/wifi/client_linux.go +++ b/vendor/github.com/mdlayher/wifi/client_linux.go @@ -59,6 +59,9 @@ func newClient() (*client, error) { func initClient(c genl) (*client, error) { family, err := c.GetFamily(nl80211.GenlName) if err != nil { + // Ensure the genl socket is closed on error to avoid leaking file + // descriptors. + _ = c.Close() return nil, err } diff --git a/vendor/vendor.json b/vendor/vendor.json index 71b2c4e7..a51be5de 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -69,10 +69,10 @@ "revisionTime": "2017-01-04T04:59:06Z" }, { - "checksumSHA1": "J6L0K9aHO8riicB4BY8/WHb6wBI=", + "checksumSHA1": "XG73RxoI99JeNkxyMStXnlCpXXM=", "path": "github.com/mdlayher/wifi", - "revision": "85a20a7adc659e5007fb9dd0961ba4e8b7ea2f80", - "revisionTime": "2017-01-17T05:43:47Z" + "revision": "1ccab08abb10805297916157a270d05f562e2647", + "revisionTime": "2017-03-01T22:08:15Z" }, { "checksumSHA1": "VzutdH69PUqRqhrDVv6F91ebQd4=",