diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-01-23 06:15:11 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-23 06:15:11 -0800 |
commit | 8098cbbee192e644de505e62c4aa0341f4acb4a5 (patch) | |
tree | 50af7ba7e829ab4d6fc9ba143e13f79dc04f4f64 /vendor/github.com/vishvananda/netlink/socket_linux.go | |
parent | c5f3899cb4133922a9732aff4680bb7eea3d391b (diff) | |
parent | 9f927c4709a51ef72d84bb557fc371d535c19fba (diff) | |
download | podman-8098cbbee192e644de505e62c4aa0341f4acb4a5.tar.gz podman-8098cbbee192e644de505e62c4aa0341f4acb4a5.tar.bz2 podman-8098cbbee192e644de505e62c4aa0341f4acb4a5.zip |
Merge pull request #4946 from containers/dependabot/go_modules/github.com/vishvananda/netlink-1.1.0
build(deps): bump github.com/vishvananda/netlink from 1.0.0 to 1.1.0
Diffstat (limited to 'vendor/github.com/vishvananda/netlink/socket_linux.go')
-rw-r--r-- | vendor/github.com/vishvananda/netlink/socket_linux.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/github.com/vishvananda/netlink/socket_linux.go b/vendor/github.com/vishvananda/netlink/socket_linux.go index 99e9fb4d8..c4d89c17e 100644 --- a/vendor/github.com/vishvananda/netlink/socket_linux.go +++ b/vendor/github.com/vishvananda/netlink/socket_linux.go @@ -141,10 +141,13 @@ func SocketGet(local, remote net.Addr) (*Socket, error) { }, }) s.Send(req) - msgs, err := s.Receive() + msgs, from, err := s.Receive() if err != nil { return nil, err } + if from.Pid != nl.PidKernel { + return nil, fmt.Errorf("Wrong sender portid %d, expected %d", from.Pid, nl.PidKernel) + } if len(msgs) == 0 { return nil, errors.New("no message nor error from netlink") } |