refs #204 fix modscan, _LDR_DATA_TABLE_ENTRY is not an executive object and doesn't have an object_type

This commit is contained in:
Michael Ligh
2020-04-07 09:22:52 -05:00
parent 2cd6a9478f
commit d5bdf9633d
@@ -370,7 +370,7 @@ class PoolScanner(plugins.PluginInterface):
vollog.log(constants.LOGLEVEL_VVV, "Cannot create an instance of {}".format(constraint.type_name))
continue
if not constraint.skip_type_test:
if constraint.object_type is not None and not constraint.skip_type_test:
try:
if mem_object.get_object_header().get_object_type(type_map, cookie) != constraint.object_type:
continue