mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Use the correct variable for error checking. Close #3232
This commit is contained in:
parent
a74125aef5
commit
a04fc3389e
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue