mailing list archives
Re: [NSE][patch] Replace superfluous uses of the NSE registry
From: Patrick Donnelly <batrick () batbytes com>
Date: Mon, 20 Jun 2011 16:50:29 -0400
On Mon, Jun 20, 2011 at 4:42 PM, Henri Doreau
<henri.doreau () greenbone net> wrote:
please find attached a patch for firewalk.nse, ipidseq.nse and
qscan.nse. These scripts use the registry to transfer information
between the hostrule and the action function.
The patch replaces this code by the use of a global variable in each
script in order to avoid bloating the registry
Just wanted NSE experts approval/comments before checking it in.
This is a good patch.
To be pedantic, those are not global variables. They are local
variables to the file scope. [A file is simply an anonymous vararg
function: function (...) <chunk> end] Local variables are always a
better choice over global variables except in extremely rare
- Patrick Donnelly
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/