]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust/dns: fix overflow of event counter
authorJason Ish <ish@unx.ca>
Mon, 12 Feb 2018 20:47:14 +0000 (14:47 -0600)
committerVictor Julien <victor@inliniac.net>
Tue, 13 Feb 2018 10:28:43 +0000 (11:28 +0100)
commit8d1739b9727d536a03da04975a631d725f6a190f
treefad6a9d44284c7a0b31c6603568d7d13008a0aa9
parent3e0a1c8c5da3120fb88be1faf8a9868b26bf94cf
rust/dns: fix overflow of event counter

Issue:
https://redmine.openinfosecfoundation.org/issues/2437

Rust will panic if this value is incremented over the max
value for a u16. Instead, use a bool as the Rust DNS code
was never decrementing this counter, effectively using
it as a bool.
rust/src/dns/dns.rs