From 2c8b757ef02bcf6052705a32da6559789aff4201 Mon Sep 17 00:00:00 2001 From: Eve Date: Thu, 28 Mar 2024 08:55:07 +0000 Subject: [PATCH] Linux: update sockscan family check to use 'is None' rather than '== None' as per CodeQL --- volatility3/framework/plugins/linux/sockscan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/volatility3/framework/plugins/linux/sockscan.py b/volatility3/framework/plugins/linux/sockscan.py index d02757238..89f35e6bb 100644 --- a/volatility3/framework/plugins/linux/sockscan.py +++ b/volatility3/framework/plugins/linux/sockscan.py @@ -257,7 +257,7 @@ class Sockscan(plugins.PluginInterface): family = psock.get_family() # remove results with no family - if family == None: + if family is None: vollog.log( constants.LOGLEVEL_VVVV, f"Skipping socket at {hex(sock_physical_addr)} as unable to determin family.",