
Nmap Development mailing list archives
assert in inet_ntop_ez()
From: Gisle Vanem <giva () bgnett no>
Date: Wed, 24 Jan 2007 13:20:47 +0100
The nbase/nbase_misc.c at line 153: #if HAVE_IPV6 else { assert(sin->sin_family == AF_INET6); gets an assert on Win32 if you have an interface that is down. In my caseit's a WiFi-adapter in ad-hoc mode. IMHO it would be okay for inet_ntop_ez() to return NULL if 'sin->sin_family' is 0. Patch attached.
PS. The interace list of "nmap --iflist" looks like this here: Starting Nmap 4.21ALPHA2 ( http://insecure.org ) at 2007-01-24 11:06 GMT ************************INTERFACES************************ DEV (SHORT) IP/MASK TYPE UP MAC eth0 (eth0) (null)/0 ethernet down 00:18:4D:00:DE:76 tr0 (tr0) 192.168.0.1/24 other up eth1 (eth1) 10.0.0.6/24 ethernet up 00:01:80:0C:70:B2 lo0 (lo0) 127.0.0.1/8 loopback up --gv
Attachment:
diffs-7.txt
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- assert in inet_ntop_ez() Gisle Vanem (Jan 24)