]> git.ipfire.org Git - thirdparty/suricata.git/commit
bypass: fix memory leak - reassign of FlowBypassInfo 7535/head
authorLukas Sismis <lukas.sismis@gmail.com>
Fri, 20 May 2022 19:33:38 +0000 (21:33 +0200)
committerVictor Julien <vjulien@oisf.net>
Mon, 13 Jun 2022 18:55:04 +0000 (20:55 +0200)
commit4c4b1de1681c33d79647112d23fce15b157b6b79
treef31e69ff1d69fc22806f62ce8be8ae93d4a10276
parent8fa5f3bdd4707e327c346581871c3bd51b8751e4
bypass: fix memory leak - reassign of FlowBypassInfo

In some situations bypass callback is called on already bypassed
flow. This allocates FlowBypassInfo structure for the flow but
does not check if the flow already has one.

Issue: #5368
(cherry picked from commit 05797c45bb5bb8b23a7af3dea2aa794c6f33e02d)
src/decode.c