diff --git a/scripts/nfs-statfs.nse b/scripts/nfs-statfs.nse index 06b39dc7e..6c2edf629 100644 --- a/scripts/nfs-statfs.nse +++ b/scripts/nfs-statfs.nse @@ -83,6 +83,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