dns: remove unused events field from state

found overflowing by oss-fuzz

(cherry picked from commit 26dc70648c)
pull/8636/head
Philippe Antoine 4 years ago committed by Victor Julien
parent 2e2483d27a
commit 70a4587a9b

@ -403,8 +403,6 @@ pub struct DNSState {
// Transactions. // Transactions.
pub transactions: Vec<DNSTransaction>, pub transactions: Vec<DNSTransaction>,
pub events: u16,
config: Option<ConfigTracker>, config: Option<ConfigTracker>,
gap: bool, gap: bool,
@ -416,7 +414,6 @@ impl DNSState {
return DNSState{ return DNSState{
tx_id: 0, tx_id: 0,
transactions: Vec::new(), transactions: Vec::new(),
events: 0,
config: None, config: None,
gap: false, gap: false,
}; };
@ -426,7 +423,6 @@ impl DNSState {
return DNSState{ return DNSState{
tx_id: 0, tx_id: 0,
transactions: Vec::new(), transactions: Vec::new(),
events: 0,
config: None, config: None,
gap: false, gap: false,
}; };
@ -496,7 +492,6 @@ impl DNSState {
let tx = &mut self.transactions[len - 1]; let tx = &mut self.transactions[len - 1];
core::sc_app_layer_decoder_events_set_event_raw(&mut tx.events, core::sc_app_layer_decoder_events_set_event_raw(&mut tx.events,
event as u8); event as u8);
self.events += 1;
} }
pub fn parse_request(&mut self, input: &[u8]) -> bool { pub fn parse_request(&mut self, input: &[u8]) -> bool {

Loading…
Cancel
Save