From efb73576e1c70bdce7c7e21ef6af6cf4c3038006 Mon Sep 17 00:00:00 2001 From: sophron Date: Tue, 13 May 2014 10:14:39 +0000 Subject: [PATCH] [NSE] A negative value should disable the maxpage limit according to NSEDoc. --- nselib/httpspider.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/nselib/httpspider.lua b/nselib/httpspider.lua index 08b439d2d..d67803f9f 100644 --- a/nselib/httpspider.lua +++ b/nselib/httpspider.lua @@ -769,6 +769,7 @@ Crawler = { -- pages we have retrieved so far local count = self:getPageCount() if ( self.options.maxpagecount and + ( self.options.maxpagecount > 0 ) and ( count > self.options.maxpagecount ) ) then table.insert(response_queue, { false, { err = false, msg = "Reached max page count" } }) condvar "signal"