Skip to content

Commit 5b62007

Browse files
committed
Fix defer module payload regression
1 parent 07b731b commit 5b62007

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/payload_set.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,8 +438,8 @@ def load_payload_component(payload_type, refname)
438438
end
439439

440440
unless payload_type_cache[refname]
441-
framework.configured_module_paths.each do |path|
442-
framework.modules.try_load_module(path, "#{folder_name}/#{refname}", Msf::MODULE_PAYLOAD)
441+
framework.configured_module_paths.each do |parent_path|
442+
framework.modules.try_load_module(parent_path, Msf::MODULE_PAYLOAD, "#{folder_name}/#{refname}")
443443
end
444444
end
445445
payload_type_cache[refname]

0 commit comments

Comments
 (0)