]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #3905: binder: in case of a service change, remove flags indicating...
authorVitalii Serhiiovych Horbatov -X (vhorbato - SOFTSERVE INC at Cisco) <vhorbato@cisco.com>
Wed, 12 Jul 2023 12:15:16 +0000 (12:15 +0000)
committerOleksii Shumeiko -X (oshumeik - SOFTSERVE INC at Cisco) <oshumeik@cisco.com>
Wed, 12 Jul 2023 12:15:16 +0000 (12:15 +0000)
Merge in SNORT/snort3 from ~VHORBATO/snort3:http_reasm_crash to master

Squashed commit of the following:

commit 83b52fa0fefd9cdf7d0687ba64804ee519225b6a
Author: vhorbato <vhorbato@cisco.com>
Date:   Mon Jul 10 11:37:53 2023 +0300

    binder: in case of a service change, remove flags indicating an abort of the direction

src/network_inspectors/binder/binder.cc

index c21abe12487576bca0df6460d32c7d4a13458b49..ec9f8298674c073ecf4ddcd64fd9297264cd7b7a 100644 (file)
@@ -780,6 +780,7 @@ void Binder::handle_flow_service_change(Flow& flow)
             {
                 flow.set_gadget(ins);
                 flow.ssn_state.snort_protocol_id = ins->get_service();
+                flow.clear_session_flags(SSNFLAG_ABORT_CLIENT | SSNFLAG_ABORT_SERVER);
                 if (data and data != flow.data)
                 {
                     if (flow.data)