mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41:29 +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:
3
tcpip.cc
3
tcpip.cc
@@ -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__);
|
||||||
|
|||||||
Reference in New Issue
Block a user