Merge branch 'master' of https://github.com/rapid7/metasploit-framework
commit
1c395666c5
|
@ -2797,6 +2797,9 @@ class DBManager
|
|||
::File.open(filename, 'rb') do |f|
|
||||
data = f.read(4)
|
||||
end
|
||||
if data.nil?
|
||||
raise DBImportError.new("Zero-length file")
|
||||
end
|
||||
|
||||
case data[0,4]
|
||||
when "PK\x03\x04"
|
||||
|
|
Loading…
Reference in New Issue