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:
david 2011-06-17 05:47:32 +00:00
parent e4498838b7
commit 332c93ea07

View file

@ -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;