diff --git a/nselib/ipp.lua b/nselib/ipp.lua index d3a7be274..e44e6d443 100644 --- a/nselib/ipp.lua +++ b/nselib/ipp.lua @@ -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