]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
PacketManager bug fix -- layers had invalid pointers
authorJosh <jrosenba@cisco.com>
Thu, 18 Sep 2014 17:50:29 +0000 (13:50 -0400)
committerJosh <jrosenba@cisco.com>
Thu, 18 Sep 2014 17:50:29 +0000 (13:50 -0400)
src/protocols/packet_manager.cc

index deba3d58281b0c45ccec285aa3657102066dade0..bb298ee46f899b7a019b2d9cf90ce50908a62bd0 100644 (file)
@@ -207,7 +207,7 @@ void PacketManager::decode(
 
 
         // internal statistics and record keeping
-        push_layer(p, prev_prot_id, pkt, codec_data.lyr_len, CodecManager::s_protocols[mapped_prot]);
+        push_layer(p, prev_prot_id, raw.data, codec_data.lyr_len, CodecManager::s_protocols[mapped_prot]);
         s_stats[mapped_prot + stat_offset]++; // add correct decode for previous layer
         mapped_prot = CodecManager::s_proto_map[codec_data.next_prot_id];
         prev_prot_id = codec_data.next_prot_id;