diff --git a/modules/exploits/multi/postgres/postgres_createlang.rb b/modules/exploits/multi/postgres/postgres_createlang.rb index e938f9b833..910d9526a5 100644 --- a/modules/exploits/multi/postgres/postgres_createlang.rb +++ b/modules/exploits/multi/postgres/postgres_createlang.rb @@ -70,7 +70,7 @@ class Metasploit4 < Msf::Exploit::Remote version = postgres_fingerprint if version[:auth] major_version = postgres_major_version(version[:auth]) - return true if major_version.to_i >= 8 + return true if major_version && major_version.to_i >= 8 end false end