diff --git a/lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/registry_key.rb b/lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/registry_key.rb index 437619abac..1080568079 100644 --- a/lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/registry_key.rb +++ b/lib/rex/post/meterpreter/extensions/stdapi/sys/registry_subsystem/registry_key.rb @@ -107,7 +107,7 @@ class RegistryKey # def self.close(client, hkey) if hkey != nil - return client.sys.registry.close_key(hkey, nil) + return client.sys.registry.close_key(hkey) end return false