mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
In hostrule: return false if mountport is nil (prevents from crashing when accessed as a table, a couple lines below).
This commit is contained in:
parent
e255be0990
commit
f9881bab18
1 changed files with 1 additions and 0 deletions
|
|
@ -130,6 +130,7 @@ hostrule = function(host)
|
|||
end
|
||||
end
|
||||
end
|
||||
if mountport == nil then return false end
|
||||
if host.registry.nfs.mountver == nil then
|
||||
local low, high = string.match(mountport.version.version, "(%d)-(%d)")
|
||||
if high == nil then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue