smb: add debug validation on file counts

pull/6324/head
Victor Julien 4 years ago
parent 114d3ba730
commit c9cee7af49

@ -566,6 +566,8 @@ impl SMBTransaction {
}
pub fn free(&mut self) {
debug_validate_bug_on!(self.tx_data.files_opened > 1);
debug_validate_bug_on!(self.tx_data.files_logged > 1);
if self.events != std::ptr::null_mut() {
sc_app_layer_decoder_events_free_events(&mut self.events);
}

Loading…
Cancel
Save