]> git.ipfire.org Git - thirdparty/suricata.git/commit
app-layer/counters: check counter id
authorVictor Julien <victor@inliniac.net>
Wed, 13 Dec 2017 09:28:19 +0000 (10:28 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 13 Dec 2017 09:28:19 +0000 (10:28 +0100)
commit367cec62928bf39172b19c0746207bdc1425a1a6
tree3b31f0d205e437b7e01d7ed3c5724c6d59eca685
parente2043668cb33ce86ff31ad1c03563d6139eed1c3
app-layer/counters: check counter id

Check counter id before updating a counter. In case of a disabled
parser with the protocol detection enable, the id can be 0. In
debug mode this would lead to a BUG_ON.
src/app-layer.c