diff --git a/nselib/httpspider.lua b/nselib/httpspider.lua index fc010f9c8..b82791462 100644 --- a/nselib/httpspider.lua +++ b/nselib/httpspider.lua @@ -275,6 +275,7 @@ LinkExtractor = { -- check the url against our whitelist if ( #self.options.whitelist > 0 ) then + valid = false for _, func in ipairs(self.options.whitelist) do if ( func(url) ) then stdnse.print_debug(2, "%s: Whitelist match: %s", LIBRARY_NAME, tostring(url))