Nmap Development mailing list archives
Re: [nmap-svn] r19779 - nmap-exp/djalal/nmap-add-targets
From: Fyodor <fyodor () insecure org>
Date: Mon, 16 Aug 2010 01:01:33 -0700
On Sun, Aug 15, 2010 at 07:01:24PM -0700, commit-mailer () insecure org wrote:
Log: Fatal when post-scripts call target.add().
[...]
+ if (new_targets == NULL)
+ fatal("Failed can't insert new targets, no ressources.");
I just have a couple minor comments on this: 1) If it is easily accomplished, I think it is better to just print a warning rather than quit Nmap if a script calls target.add() in an inappropriate time (postrule action). We generally try to make it hard for scripts to crash Nmap itself, and try to limit damage to just the running script itself. 2) You've got an extra s in 'ressources' and "Failed can't" should probably be "Failed to". Also, I think the error message could be made more clear. If this only happens in the case where post-scripts call target.add() (as mentioned in the svn log), I think that should be mentioned in the message. Cheers, Fyodor _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Re: [nmap-svn] r19779 - nmap-exp/djalal/nmap-add-targets Fyodor (Aug 16)
- Re: [nmap-svn] r19779 - nmap-exp/djalal/nmap-add-targets Djalal Harouni (Aug 18)
