From: Shivani Bhardwaj Date: Sat, 15 Mar 2025 09:43:23 +0000 (+0530) Subject: stream: replace explicit logic w pre-existing fn X-Git-Tag: suricata-8.0.0-beta1~207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22d05c289ca10fe11c7801e2f879a6f364ca61a7;p=thirdparty%2Fsuricata.git stream: replace explicit logic w pre-existing fn --- diff --git a/src/stream-tcp.c b/src/stream-tcp.c index 0d313dc5e2..03bd6c57a4 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -6698,11 +6698,7 @@ void StreamTcpUpdateAppLayerProgress(TcpSession *ssn, char direction, void StreamTcpSetSessionNoReassemblyFlag(TcpSession *ssn, char direction) { ssn->flags |= STREAMTCP_FLAG_APP_LAYER_DISABLED; - if (direction) { - ssn->server.flags |= STREAMTCP_STREAM_FLAG_NEW_RAW_DISABLED; - } else { - ssn->client.flags |= STREAMTCP_STREAM_FLAG_NEW_RAW_DISABLED; - } + StreamTcpSetDisableRawReassemblyFlag(ssn, direction); } /** \brief Set the No reassembly flag for the given direction in given TCP