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

(cherry picked from commit 26dc706)
  • Loading branch information
catenacyber committed Mar 15, 2023
1 parent d0b1a04 commit c8ea392
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 @@ -403,8 +403,6 @@ pub struct DNSState {
// Transactions.
pub transactions: Vec<DNSTransaction>,

pub events: u16,

config: Option<ConfigTracker>,

gap: bool,
Expand Down Expand Up @@ -496,7 +494,6 @@ impl DNSState {
let tx = &mut self.transactions[len - 1];
core::sc_app_layer_decoder_events_set_event_raw(&mut tx.events,
event as u8);
self.events += 1;
}

pub fn parse_request(&mut self, input: &[u8]) -> bool {
Expand Down

0 comments on commit c8ea392

Please sign in to comment.