Nmap Development mailing list archives

Re: Zenmap: math error


From: David Fifield <david () bamsoftware com>
Date: Mon, 4 Oct 2010 08:18:10 -0700

On Mon, Oct 04, 2010 at 03:54:24PM +0200, Henri Doreau wrote:
Hello,

zenmap crashes when processing a topology that contains a host with
zero opened ports.
The error comes from applying math.log to the number of opened ports
of each host.

Please find attached a trivial patch that fixes it.

Thanks. That's great, I have applied it, except that I change "or 1" to
"+ 1" so that nodes with 0 and 1 open ports will have different sizes.

David Fifield
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: