From 4da5cfebc78261d5f0057a815e405ff2e27d2c4d Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 11 Feb 2016 23:50:48 +0000 Subject: [PATCH] Avoid blank output from broadcast-dhcp-discover --- scripts/broadcast-dhcp-discover.nse | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/broadcast-dhcp-discover.nse b/scripts/broadcast-dhcp-discover.nse index a73178f94..864b5c4ab 100644 --- a/scripts/broadcast-dhcp-discover.nse +++ b/scripts/broadcast-dhcp-discover.nse @@ -214,6 +214,10 @@ action = function() end until next(threads) == nil + if not next(result) then + return nil + end + local response = stdnse.output_table() -- Display the results for i, r in ipairs(result) do