Bump github.com/mdlayher/netlink to clean up on bind failure

This commit is contained in:
Matt Layher 2017-03-02 10:50:14 -05:00
parent 5d22d41ed7
commit 17a6ed5355
No known key found for this signature in database
GPG Key ID: 77BFE531397EDE94
2 changed files with 6 additions and 3 deletions

View File

@ -62,6 +62,9 @@ func bind(s socket, config *Config) (*conn, error) {
}
if err := s.Bind(addr); err != nil {
// Since this never returns conn (and as such, the caller cannot close it),
// close the socket here in the event of a failure to bind.
_ = s.Close()
return nil, err
}

6
vendor/vendor.json vendored
View File

@ -51,10 +51,10 @@
"revisionTime": "2016-04-24T11:30:07Z"
},
{
"checksumSHA1": "zAMSb+r3Hh8AFE+Oc8NrL7F+j6o=",
"checksumSHA1": "yDvo49XwrEOOzk4g5eMtz7aZ1RY=",
"path": "github.com/mdlayher/netlink",
"revision": "6ad102ec4b0fb2ed33be30ee3bf714333420658e",
"revisionTime": "2017-02-27T17:09:03Z"
"revision": "11047e3e3daa32f7b757bc9ab59c413cadeccfa1",
"revisionTime": "2017-03-02T15:49:27Z"
},
{
"checksumSHA1": "+2roeIWCAjCC58tZcs12Vqgf1Io=",