diff --git a/volatility3/framework/plugins/linux/sockstat.py b/volatility3/framework/plugins/linux/sockstat.py index f00169cf6..1af232b07 100644 --- a/volatility3/framework/plugins/linux/sockstat.py +++ b/volatility3/framework/plugins/linux/sockstat.py @@ -310,13 +310,13 @@ class Sockstat(plugins.PluginInterface): continue socket_alloc = linux.LinuxUtilities.container_of(d_inode, "socket_alloc", "vfs_inode", vmlinux) - _socket = socket_alloc.socket + socket = socket_alloc.socket vfs_inode = socket_alloc.vfs_inode - if not (_socket and vfs_inode): + if not (socket and vfs_inode): continue - sock = _socket.sk.dereference() + sock = socket.sk.dereference() sock_type = sock.type family = sock.family