]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #4143: appid: do not delete hsession for http3
authorShibin K V (shikv) <shikv@cisco.com>
Tue, 19 Dec 2023 17:52:28 +0000 (17:52 +0000)
committerShanmugam S (shanms) <shanms@cisco.com>
Tue, 19 Dec 2023 17:52:28 +0000 (17:52 +0000)
Merge in SNORT/snort3 from ~SHIKV/snort3:quic_event_fix to master

Squashed commit of the following:

commit 364cf7c2858eb5de01e54d4999fa3f2d74b876fb
Author: shibin k v <shikv@cisco.com>
Date:   Wed Dec 13 08:16:52 2023 +0000

    appid: do not delete hsession for http3

src/network_inspectors/appid/appid_http_event_handler.cc

index 328e4abfd016e58ebd3e28dbd3749a1fea922c5f..857b3753fb2f3f6e7ba05435edea0bb4f2fc6432 100644 (file)
@@ -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);