From 9f79aad78fef868479916c26e48566d53ecb0542 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 27 Sep 2010 01:20:52 +0000 Subject: [PATCH] Pass the driver_options whenever constructing a driver in brute.lua. This could be required, for example, when running the check method. --- nselib/brute.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nselib/brute.lua b/nselib/brute.lua index 6e9bbceca..150ebd542 100644 --- a/nselib/brute.lua +++ b/nselib/brute.lua @@ -577,9 +577,9 @@ Engine = -- Only run the check method if it exist. We should phase this out -- in favor of a check in the action function of the script - if ( self.driver:new( self.host, self.port ).check ) then + if ( self.driver:new( self.host, self.port, self.driver_options ).check ) then -- check if the driver is ready! - local status, response = self.driver:new( self.host, self.port ):check() + local status, response = self.driver:new( self.host, self.port, self.driver_options ):check() if( not(status) ) then return false, response end end