From 22d05c289ca10fe11c7801e2f879a6f364ca61a7 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Sat, 15 Mar 2025 15:13:23 +0530 Subject: [PATCH] stream: replace explicit logic w pre-existing fn --- src/stream-tcp.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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