Catch invalid address exception for invalid sock values

This commit is contained in:
Andrew Case
2025-01-31 20:46:16 +00:00
parent cb3542f76a
commit 4d43ac9a6d
@@ -541,11 +541,11 @@ class Sockstat(plugins.PluginInterface):
try:
sock_type = sock.get_type()
family = sock.get_family()
sock_handler = SockHandlers(vmlinux, task)
sock_fields = sock_handler.process_sock(sock)
except exceptions.InvalidAddressException:
continue
sock_handler = SockHandlers(vmlinux, task)
sock_fields = sock_handler.process_sock(sock)
if not sock_fields:
continue