From 0778eb3da27baab2e8d93e149e4279a088a86036 Mon Sep 17 00:00:00 2001 From: Joe Swantek Date: Mon, 28 Jun 2021 17:37:56 -0500 Subject: [PATCH] SAGE-906: upstream: port netlink parseAddr panic fix src: https://github.com/vishvananda/netlink/pull/665 --- vendor/github.com/vishvananda/netlink/addr_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/github.com/vishvananda/netlink/addr_linux.go b/vendor/github.com/vishvananda/netlink/addr_linux.go index 28746d5afecd..332180114951 100644 --- a/vendor/github.com/vishvananda/netlink/addr_linux.go +++ b/vendor/github.com/vishvananda/netlink/addr_linux.go @@ -271,7 +271,7 @@ func parseAddr(m []byte) (addr Addr, family, index int, err error) { // But obviously, as there are IPv6 PtP addresses, too, // IFA_LOCAL should also be handled for IPv6. if local != nil { - if family == FAMILY_V4 && local.IP.Equal(dst.IP) { + if family == FAMILY_V4 && dst != nil && local.IP.Equal(dst.IP) { addr.IPNet = dst } else { addr.IPNet = local