]> git.ipfire.org Git - thirdparty/suricata.git/commit
mqtt: fix logic when setting event
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 17 Oct 2023 08:26:57 +0000 (10:26 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 30 Jan 2024 08:35:16 +0000 (09:35 +0100)
commit89936b6530690c6d03869b2ad8b82f9f84776f94
treeb924236e74076c47b18299f0814e874c3ab75852
parent2fb50598f23b112f14ec15330e11c40b74caa35f
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
rust/src/mqtt/mqtt.rs