mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +00:00
o The NSE nmap.registry.args table is now available, albeit empty, when
--script-args isn't used. Now scripts don't need to check if it's nil before attempting to index it. [Kris]
This commit is contained in:
@@ -456,7 +456,10 @@ void NmapOps::ValidateOptions() {
|
||||
|
||||
if(ipoptions && osscan)
|
||||
error("WARNING: Ip options are NOT used while OS scanning!");
|
||||
|
||||
|
||||
/* Make sure nmap.registry.args is available (even if it's empty) */
|
||||
if (!scriptargs)
|
||||
scriptargs = strdup("");
|
||||
}
|
||||
|
||||
void NmapOps::setMaxOSTries(int mot) {
|
||||
|
||||
Reference in New Issue
Block a user