From e255be0990e67c2c1aba58e69ef9189f96b7c701 Mon Sep 17 00:00:00 2001 From: henri Date: Mon, 10 Sep 2012 14:11:38 +0000 Subject: [PATCH] In hostrule: return false if mountport is nil (prevent from crashing when accessed as a table, a couple line below). --- scripts/nfs-statfs.nse | 1 + 1 file changed, 1 insertion(+) 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