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 5386cc3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 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 All @@ -416,7 +414,6 @@ impl DNSState {
return DNSState{
tx_id: 0,
transactions: Vec::new(),
events: 0,
config: None,
gap: false,
};
Expand All @@ -426,7 +423,6 @@ impl DNSState {
return DNSState{
tx_id: 0,
transactions: Vec::new(),
events: 0,
config: None,
gap: false,
};
Expand Down Expand Up @@ -496,7 +492,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 5386cc3

Please sign in to comment.