mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
latest changes, including a couple doug fixes
This commit is contained in:
@@ -953,7 +953,7 @@ static void parse_etchosts(char *fname) {
|
||||
while (*tp == ' ' || *tp == '\t') tp++;
|
||||
|
||||
if (sscanf(tp, "%15s %255s", ipaddrstr, hname) == 2) {
|
||||
if (inet_aton(ipaddrstr, &ia)) {
|
||||
if (inet_pton(AF_INET, ipaddrstr, &ia)) {
|
||||
he = new host_elem;
|
||||
he->name = strdup(hname);
|
||||
he->addr = (u32) ia.s_addr;
|
||||
|
||||
Reference in New Issue
Block a user