dcerpc/tcp: fix fragmentation handling

Really count the fragments, and set it done when last was received
pull/14618/head
Philippe Antoine 3 months ago committed by Victor Julien
parent f64aec9d11
commit 5bb9a0c3af

@ -645,8 +645,8 @@ impl DCERPCState {
&mut tx.stub_data_buffer_ts,
&mut tx.stub_data_buffer_reset_ts,
);
tx.req_done = true;
tx.frag_cnt_ts = 1;
tx.req_done = tx.stub_data_buffer_reset_ts;
tx.frag_cnt_ts += 1;
if let Some(flow) = self.flow {
sc_app_layer_parser_trigger_raw_stream_inspection(flow, Direction::ToServer as i32);
}
@ -660,8 +660,8 @@ impl DCERPCState {
&mut tx.stub_data_buffer_tc,
&mut tx.stub_data_buffer_reset_tc,
);
tx.resp_done = true;
tx.frag_cnt_tc = 1;
tx.resp_done = tx.stub_data_buffer_reset_tc;
tx.frag_cnt_tc += 1;
if let Some(flow) = self.flow {
sc_app_layer_parser_trigger_raw_stream_inspection(flow, Direction::ToClient as i32);
}

Loading…
Cancel
Save