Skip to content

Commit 4d43ac9

Browse files
committed
Catch invalid address exception for invalid sock values
1 parent cb3542f commit 4d43ac9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

volatility3/framework/plugins/linux/sockstat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,11 +541,11 @@ def list_sockets(
541541
try:
542542
sock_type = sock.get_type()
543543
family = sock.get_family()
544+
sock_handler = SockHandlers(vmlinux, task)
545+
sock_fields = sock_handler.process_sock(sock)
544546
except exceptions.InvalidAddressException:
545547
continue
546548

547-
sock_handler = SockHandlers(vmlinux, task)
548-
sock_fields = sock_handler.process_sock(sock)
549549
if not sock_fields:
550550
continue
551551

0 commit comments

Comments
 (0)