Skip to content

Commit

Permalink
Checking for 'value' != None before creating IWbemClass properties
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielg5 committed Nov 28, 2024
1 parent af51dfd commit de289b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impacket/dcerpc/v5/dcom/wmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2613,7 +2613,7 @@ def SpawnInstance(self):
def createProperties(self, properties):
for property in properties:
# Do we have an object property?
if properties[property]['type'] == CIM_TYPE_ENUM.CIM_TYPE_OBJECT.value:
if properties[property]['type'] == CIM_TYPE_ENUM.CIM_TYPE_OBJECT.value and properties[property]['value'] != None:
# Yes.. let's create an Object for it too
objRef = OBJREF_CUSTOM()
objRef['iid'] = self._iid
Expand Down

0 comments on commit de289b4

Please sign in to comment.