1
0
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:
nnposter
2025-11-23 02:55:21 +00:00
parent a74125aef5
commit a04fc3389e

View File

@@ -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