]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream: replace explicit logic w pre-existing fn
authorShivani Bhardwaj <shivani@oisf.net>
Sat, 15 Mar 2025 09:43:23 +0000 (15:13 +0530)
committerVictor Julien <victor@inliniac.net>
Sat, 29 Mar 2025 05:37:59 +0000 (06:37 +0100)
src/stream-tcp.c

index 0d313dc5e2a0cc64ad626dde8c965eca002dd5c9..03bd6c57a41c15c6704d0ee8807bc1b243d5949e 100644 (file)
@@ -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