]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: config checks alstate before getting tx
authorPhilippe Antoine <contact@catenacyber.fr>
Fri, 8 Apr 2022 13:15:23 +0000 (15:15 +0200)
committerShivani Bhardwaj <shivanib134@gmail.com>
Thu, 21 Apr 2022 07:31:56 +0000 (13:01 +0530)
commitda824d82529d41a02f26b9e97a01baca6ba19463
tree53e9f42d2d3bebe72cacb2b4af96b29b9e2eacde
parent483194893e55b978d90ff45acda5df196c73bea4
detect: config checks alstate before getting tx

Ticket: 4972

As is done in detect-lua-extensions.
We can have a flow with alproto unknown, no state, and therefore
cannot run AppLayerParserGetTx which could try to run a NULL
function

(cherry picked from commit dccf2e4c30b968477d9cc7e7a86b64b97893831c)
src/detect-config.c