From 4152af8eb1df40d14a88aba69df789b0789a34a6 Mon Sep 17 00:00:00 2001 From: patrik Date: Thu, 14 Nov 2013 02:50:47 +0000 Subject: [PATCH] Fix nil value reference --- scripts/http-dlink-backdoor.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/http-dlink-backdoor.nse b/scripts/http-dlink-backdoor.nse index 2f8ce2650..405e0e1a6 100644 --- a/scripts/http-dlink-backdoor.nse +++ b/scripts/http-dlink-backdoor.nse @@ -45,7 +45,7 @@ portrule = shortport.http action = function(host, port) local response = http.get(host, port, "/", { redirect_ok = false, no_cache = true }) - local server = response.header and response.header['server'] + local server = response.header and response.header['server'] or "" local vuln_table = { title = "Firmware backdoor in some models of D-Link routers allow for admin password bypass", state = vulns.STATE.NOT_VULN,