Skip to content

Commit

Permalink
Linux: Netfilter - fix traceback on missing module name
Browse files Browse the repository at this point in the history
When the module name can't be found, `None` ends up in this field,
causing a traceback when rendering. This fixes it by replacing `None`
with `renderers.NotAvailableValue()`.

This occurred in the context of a netfilter hook from a hidden module.
  • Loading branch information
dgmcdona committed Oct 11, 2024
1 parent 9477d16 commit fb4dd92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion volatility3/framework/plugins/linux/netfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ def _format_fields(self, fields):
hook_name,
priority,
format_hints.Hex(hook_func),
module_name,
module_name or renderers.NotAvailableValue(),
str(hooked),
)

Expand Down

0 comments on commit fb4dd92

Please sign in to comment.