1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 20:51:30 +00:00

Adapt part of the code I missed in r15354; the code for an address mask

request did take into the account the size of the u32 in pointer
arithmetic, so it had to be changed with the change to u8.
This commit is contained in:
david
2009-08-29 01:50:31 +00:00
parent 02c9cf42f7
commit cd5010893e

View File

@@ -1512,7 +1512,8 @@ char *ping = (char *) &pingpkt;
dlen -= 12; dlen -= 12;
} else if (ptype == 17 && pcode == 0) /* icmp netmask req */ { } else if (ptype == 17 && pcode == 0) /* icmp netmask req */ {
icmplen = 12; icmplen = 12;
*datastart++ = 0; memset(datastart, 0, 4);
datastart += 4;
dlen -= 4; dlen -= 4;
} else } else
fatal("Unknown icmp type/code (%d/%d) in %s", ptype, pcode, __func__); fatal("Unknown icmp type/code (%d/%d) in %s", ptype, pcode, __func__);