From: Shibin K V (shikv) Date: Tue, 19 Dec 2023 17:52:28 +0000 (+0000) Subject: Pull request #4143: appid: do not delete hsession for http3 X-Git-Tag: 3.1.77.0~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55ca5dd3d2d17a4874845f36d90caa7c83dbcc79;p=thirdparty%2Fsnort3.git Pull request #4143: appid: do not delete hsession for http3 Merge in SNORT/snort3 from ~SHIKV/snort3:quic_event_fix to master Squashed commit of the following: commit 364cf7c2858eb5de01e54d4999fa3f2d74b876fb Author: shibin k v Date: Wed Dec 13 08:16:52 2023 +0000 appid: do not delete hsession for http3 --- diff --git a/src/network_inspectors/appid/appid_http_event_handler.cc b/src/network_inspectors/appid/appid_http_event_handler.cc index 328e4abfd..857b3753f 100644 --- a/src/network_inspectors/appid/appid_http_event_handler.cc +++ b/src/network_inspectors/appid/appid_http_event_handler.cc @@ -93,7 +93,8 @@ void HttpEventHandler::handle(DataEvent& event, Flow* flow) { if (direction == APP_ID_FROM_INITIATOR) { - if (asd->get_prev_httpx_raw_packet() != asd->session_packet_count) + AppId http_app_id = flow->stream_intf->get_appid_from_stream(flow); + if (http_app_id != APP_ID_HTTP3 and asd->get_prev_httpx_raw_packet() != asd->session_packet_count) { asd->delete_all_http_sessions(); asd->set_prev_httpx_raw_packet(asd->session_packet_count);