netlink: exclude connections with invalid inode

This commit is contained in:
Gustavo Iñiguez Goia 2020-04-12 12:33:59 +02:00
parent c51d9542ae
commit d6af47813e

View file

@ -207,6 +207,9 @@ func SocketGet(family uint8, proto uint8, srcPort, dstPort uint16, local, remote
s.ID.SourcePort, s.ID.Source, s.ID.Destination, s.ID.DestinationPort)
continue
}
if s.INode == 0 {
continue
}
sock = append([]*Socket{s}, sock...)
}