From: Philippe Antoine Date: Wed, 8 Jun 2022 12:31:24 +0000 (+0200) Subject: dns: remove unused events field from state X-Git-Tag: suricata-7.0.0-beta1~471 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26dc70648c2b840ae7b56c88162f129c06ef03fd;p=thirdparty%2Fsuricata.git dns: remove unused events field from state found overflowing by oss-fuzz --- diff --git a/rust/src/dns/dns.rs b/rust/src/dns/dns.rs index 43d7c9fe01..a69043456b 100644 --- a/rust/src/dns/dns.rs +++ b/rust/src/dns/dns.rs @@ -323,8 +323,6 @@ pub struct DNSState { // Transactions. pub transactions: VecDeque, - pub events: u16, - config: Option, gap: bool, @@ -395,7 +393,6 @@ impl DNSState { let tx = &mut self.transactions[len - 1]; tx.tx_data.set_event(event as u8); - self.events += 1; } fn parse_request(&mut self, input: &[u8]) -> bool {