]> git.ipfire.org Git - thirdparty/suricata.git/commit
mqtt: fix logic when setting event 10278/head 10308/head
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 17 Oct 2023 08:26:57 +0000 (10:26 +0200)
committerVictor Julien <vjulien@oisf.net>
Tue, 30 Jan 2024 12:40:31 +0000 (13:40 +0100)
commit3cdd50071b755720f0c23f76d3cae029327afa9b
tree10c6ce45ea894e2e2189481cf1f61a317281efea
parentf4910decbc660d38a5f04efbb4eb9cec9e2dbeeb
mqtt: fix logic when setting event

Especially sets transactions to complete when we get a response
without having seen the request, so that the transactions
end up getting cleaned (instead of living/leaking in the state).

Also try to set the event on the relevant transaction, instead
of creating a new transaction just for the purpose of having
the event.

Ticket: #6299
(cherry picked from commit 89936b6530690c6d03869b2ad8b82f9f84776f94)
rust/src/mqtt/mqtt.rs