From 332c93ea07364105070d861e638d6828bc1aef13 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 17 Jun 2011 05:47:32 +0000 Subject: [PATCH] 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. --- scan_engine.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scan_engine.cc b/scan_engine.cc index cbf6b504a..17b8df042 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -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;