]> git.ipfire.org Git - people/ms/suricata.git/commit - rust/src/dns/dns.rs
dns: fix subtraction overflow in debug message
authorJason Ish <jason.ish@oisf.net>
Tue, 4 Aug 2020 19:47:19 +0000 (13:47 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 4 Aug 2020 19:58:08 +0000 (13:58 -0600)
commitcc154ce152750aed796df63925c403b1abe8755c
tree9b00a841b0363ad401bf666f94af287b0ed2e68a
parent80ccbff28acf4cdc0fab8bcc50f4cd15cc9d2895
dns: fix subtraction overflow in debug message

The math for the return value wasn't updated in the debug log
to match the logic and could lead to a subtraction overflow
rust/src/dns/dns.rs