mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Use the correct variable for error checking. Close #3232
This commit is contained in:
@@ -332,7 +332,7 @@ Helper = {
|
||||
request:addAttributeGroup(ag)
|
||||
|
||||
local status, response = HTTP.Request( self.host, self.port, tostring(request) )
|
||||
if ( not(response) ) then
|
||||
if not status then
|
||||
return status, response
|
||||
end
|
||||
|
||||
@@ -387,7 +387,7 @@ Helper = {
|
||||
request:addAttributeGroup(ag)
|
||||
|
||||
local status, response = HTTP.Request( self.host, self.port, tostring(request) )
|
||||
if ( not(response) ) then
|
||||
if not status then
|
||||
return status, response
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user