From 9b2fcfe0b102d4ab2eb9f970a0ad216ec9092f45 Mon Sep 17 00:00:00 2001 From: patrik Date: Wed, 28 Dec 2011 17:02:10 +0000 Subject: [PATCH] Fixed undeclared local variable in broadcast-dhcp-discover [Patrik] --- scripts/broadcast-dhcp-discover.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/broadcast-dhcp-discover.nse b/scripts/broadcast-dhcp-discover.nse index 20f4b8f82..e599beeb7 100644 --- a/scripts/broadcast-dhcp-discover.nse +++ b/scripts/broadcast-dhcp-discover.nse @@ -47,7 +47,7 @@ require 'packet' -- -- @return mac_addr string containing a random MAC local function randomizeMAC() - mac_addr = "" + local mac_addr = "" for j=1, 6 do mac_addr = mac_addr .. string.char(math.random(1, 255)) end