From a04fc3389ed758d52e75db6e72ac96a1038f330d Mon Sep 17 00:00:00 2001 From: nnposter Date: Sun, 23 Nov 2025 02:55:21 +0000 Subject: [PATCH] Use the correct variable for error checking. Close #3232 --- nselib/ipp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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