]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/alert: directly increment alerts.discarded
authorJuliana Fajardini <jufajardini@gmail.com>
Mon, 9 May 2022 14:24:18 +0000 (11:24 -0300)
committerVictor Julien <vjulien@oisf.net>
Wed, 1 Jun 2022 11:22:59 +0000 (13:22 +0200)
commitb3070b8ba915e43b5b0e535ad71ebbf29877036f
treee2614b86ee2ac4f822105410b28f9e3046a5ce27
parentaa396f4f5e1b971b4250813e0e551d1479b2b15d
detect/alert: directly increment alerts.discarded

In the unlikely case of AlertQueueExpand failure, we were incrementing
the discarded alerts stats in AlertQueueAppend via the Packet member in the
DetectEngineThreadCtx, which may not be initialized yet.

Bug #5353

(cherry picked from commit 28ac75b50594f464949c036bbb34ceff759bdc9c)
src/detect-engine-alert.c