From 8a6d4baf04ca67e432e3d3d5c0b739fb9a1e4eec Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Thu, 23 Jan 2020 11:31:06 -0600 Subject: [PATCH] defrag: set livedev on the reassembled packet (issue-3380) 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. (cherry picked from commit d1eab5aa462f18f66ada9e5bbc9c89b8104db96a) --- src/decode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/decode.c b/src/decode.c index a9f32fda44..9d8aace0a7 100644 --- a/src/decode.c +++ b/src/decode.c @@ -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"); } -- 2.47.2