]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
frames: remove dead condition in eof check 7226/head
authorVictor Julien <vjulien@oisf.net>
Sun, 10 Apr 2022 18:22:00 +0000 (20:22 +0200)
committerVictor Julien <vjulien@oisf.net>
Sun, 10 Apr 2022 21:15:25 +0000 (23:15 +0200)
src/app-layer-frames.c

index bc97b2d7de8e8882b3c1995f90908ff5059a99f9..cadbfafafc79c9b2e42c0f5fdb5707c9b7564b56 100644 (file)
@@ -820,8 +820,7 @@ void FramesPrune(Flow *f, Packet *p)
         frames = &frames_container->toclient;
     }
 
-    const bool eof = ssn->state == TCP_CLOSED || PKT_IS_PSEUDOPKT(p) ||
-                     (ssn->flags & STREAMTCP_FLAG_APP_LAYER_DISABLED);
+    const bool eof = ssn->state == TCP_CLOSED || PKT_IS_PSEUDOPKT(p);
     SCLogDebug("eof %s", eof ? "TRUE" : "false");
     FramePrune(frames, stream, eof);
 }