mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Correctly update datalen when getting IP data.
We were instead updating the value of an unused temporary variable. This caused encapsulated data to appear longer than it was.
This commit is contained in:
parent
e4498838b7
commit
332c93ea07
1 changed files with 2 additions and 2 deletions
|
|
@ -4229,7 +4229,7 @@ static bool get_pcap_result(UltraScanInfo *USI, struct timeval *stime) {
|
|||
size_t ss_len;
|
||||
|
||||
datalen = bytes;
|
||||
data = ip_get_data(ip_tmp, &bytes, &hdr);
|
||||
data = ip_get_data(ip_tmp, &datalen, &hdr);
|
||||
if (data == NULL)
|
||||
continue;
|
||||
|
||||
|
|
@ -4820,7 +4820,7 @@ static int get_ping_pcap_result(UltraScanInfo *USI, struct timeval *stime) {
|
|||
*/
|
||||
|
||||
datalen = bytes;
|
||||
data = ip_get_data(ip_tmp, &bytes, &hdr);
|
||||
data = ip_get_data(ip_tmp, &datalen, &hdr);
|
||||
if (data == NULL)
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue