Skip to content

Commit 298b20b

Browse files
committed
Land rapid7#5118 - prevent stack trace in https x64
2 parents ec28992 + 1d166c1 commit 298b20b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/payload/uuid.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def self.find_platform_id(platform)
201201
end
202202

203203
# Map a platform abbreviation to the real name
204-
name = Msf::Platform.find_platform(platform)
204+
name = platform ? Msf::Platform.find_platform(platform) : nil
205205
if name && name.respond_to?(:realname)
206206
name = name.realname.downcase
207207
end

0 commit comments

Comments
 (0)