From f9881bab1876d281cdf7c1cdee2c9e9dd2fab4ab Mon Sep 17 00:00:00 2001 From: henri Date: Mon, 10 Sep 2012 14:45:21 +0000 Subject: [PATCH] In hostrule: return false if mountport is nil (prevents from crashing when accessed as a table, a couple lines below). --- scripts/nfs-ls.nse | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/nfs-ls.nse b/scripts/nfs-ls.nse index a283d4481..de441ee17 100644 --- a/scripts/nfs-ls.nse +++ b/scripts/nfs-ls.nse @@ -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