]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
dns: remove unused events field from state
authorPhilippe Antoine <contact@catenacyber.fr>
Wed, 8 Jun 2022 12:31:24 +0000 (14:31 +0200)
committerVictor Julien <vjulien@oisf.net>
Thu, 9 Jun 2022 05:27:16 +0000 (07:27 +0200)
found overflowing by oss-fuzz

rust/src/dns/dns.rs

index 43d7c9fe010d116860adff4358b363e2243c460b..a69043456b4cd4634f7000684f9c73a6574bb998 100644 (file)
@@ -323,8 +323,6 @@ pub struct DNSState {
     // Transactions.
     pub transactions: VecDeque<DNSTransaction>,
 
-    pub events: u16,
-
     config: Option<ConfigTracker>,
 
     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 {