From 6fa6f476c71ca71c0bc4c20713b7082452b58d9f Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Wed, 1 Mar 2017 17:20:57 -0500 Subject: [PATCH] Bump github.com/mdlayher/wifi to fix #486 (#487) --- vendor/github.com/mdlayher/wifi/client_linux.go | 3 +++ vendor/vendor.json | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) 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=",