From fb8ae1ffd064bc62e143a9699fac937bbaa610a9 Mon Sep 17 00:00:00 2001 From: patrik Date: Thu, 18 Nov 2010 00:06:51 +0000 Subject: [PATCH] applied patch from Thomas Buchanan that fixes a bug in the upnp library that would incorrectly report ports as open if the connection timed out. --- nselib/upnp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"