mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Don't use strict inequality with MAX_LINK_HEADERSZ.
DLT_IPNET is equal to this.
This commit is contained in:
parent
f0d97d0e9a
commit
91b7aa2d5f
1 changed files with 1 additions and 1 deletions
2
tcpip.cc
2
tcpip.cc
|
|
@ -1653,7 +1653,7 @@ char *readip_pcap(pcap_t *pd, unsigned int *len, long to_usec,
|
|||
if (offset && linknfo) {
|
||||
linknfo->datalinktype = datalink;
|
||||
linknfo->headerlen = offset;
|
||||
assert(offset < MAX_LINK_HEADERSZ);
|
||||
assert(offset <= MAX_LINK_HEADERSZ);
|
||||
memcpy(linknfo->header, p, MIN(sizeof(linknfo->header), offset));
|
||||
}
|
||||
p += offset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue