diff --git a/nselib/upnp.lua b/nselib/upnp.lua index 2cf68d7f6..592e526b5 100644 --- a/nselib/upnp.lua +++ b/nselib/upnp.lua @@ -171,7 +171,7 @@ Comm = { return true, result end - if ( #response > 0 ) then + if ( status and #response > 0 ) then return true, result[1] else return false, "Received no responses"