Don't lookup nil platform, prevents a stack trace w/64-bit reverse_https

bug/bundler_fix
HD Moore 2015-04-09 17:18:42 -05:00
parent ec28992ce2
commit 1d166c1ef6
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ class Msf::Payload::UUID
end
# Map a platform abbreviation to the real name
name = Msf::Platform.find_platform(platform)
name = platform ? Msf::Platform.find_platform(platform) : nil
if name && name.respond_to?(:realname)
name = name.realname.downcase
end