Bump github.com/mdlayher/wifi to fix #486 (#487)

This commit is contained in:
Matt Layher 2017-03-01 17:20:57 -05:00 committed by Tobias Schmidt
commit 6fa6f476c7
2 changed files with 6 additions and 3 deletions

View file

@ -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
}