Skip to content

Commit

Permalink
dns: remove unused events field from state
Browse files Browse the repository at this point in the history
found overflowing by oss-fuzz
  • Loading branch information
catenacyber authored and victorjulien committed Jun 9, 2022
1 parent df2e408 commit 26dc706
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions rust/src/dns/dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,6 @@ pub struct DNSState {
// Transactions.
pub transactions: VecDeque<DNSTransaction>,

pub events: u16,

config: Option<ConfigTracker>,

gap: bool,
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 26dc706

Please sign in to comment.