Linux: Netfilter - fix traceback on missing module name

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.
This commit is contained in:
David McDonald
2024-10-11 10:15:43 -05:00
parent 9477d16f1b
commit fb4dd924ce
@@ -714,7 +714,7 @@ class Netfilter(interfaces.plugins.PluginInterface):
hook_name,
priority,
format_hints.Hex(hook_func),
module_name,
module_name or renderers.NotAvailableValue(),
str(hooked),
)