Skip to content

Commit 19c7189

Browse files
authored
Merge pull request rapid7#20067 from adfoster-r7/fix-defer-module-payload-regression
Fix defer module payload regression
2 parents 3368d8b + 5b62007 commit 19c7189

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)