mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 05:09:00 +00:00
In hostrule: return false if mountport is nil (prevent from crashing when accessed as a table, a couple line below).
This commit is contained in:
@@ -83,6 +83,7 @@ hostrule = function(host)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if mountport == nil then return false end
|
||||||
if host.registry.nfs.mountver == nil then
|
if host.registry.nfs.mountver == nil then
|
||||||
local low, high = string.match(mountport.version.version, "(%d)-(%d)")
|
local low, high = string.match(mountport.version.version, "(%d)-(%d)")
|
||||||
if high == nil then
|
if high == nil then
|
||||||
|
|||||||
Reference in New Issue
Block a user