]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
defrag: set livedev on the reassembled packet (issue-3380)
authorJason Ish <jason.ish@oisf.net>
Thu, 23 Jan 2020 17:31:06 +0000 (11:31 -0600)
committerVictor Julien <victor@inliniac.net>
Tue, 28 Jan 2020 10:13:09 +0000 (11:13 +0100)
Set the livedev on reassembled packets to that of the parent
packet. Fixes issues with multidetect, specifically a segfault
as reported in issue 3380.

Bug #3380.

src/decode.c

index a9f32fda445f41f2f075c45f25b6b749c1640f70..9d8aace0a75d544860076661f72ae149cbd0a8d2 100644 (file)
@@ -376,6 +376,7 @@ Packet *PacketDefragPktSetup(Packet *parent, const uint8_t *pkt, uint32_t len, u
     p->vlan_id[0] = parent->vlan_id[0];
     p->vlan_id[1] = parent->vlan_id[1];
     p->vlan_idx = parent->vlan_idx;
+    p->livedev = parent->livedev;
 
     SCReturnPtr(p, "Packet");
 }