]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
stream/app layer: call new Truncate callback for data gap case as well.
authorVictor Julien <victor@inliniac.net>
Thu, 30 Aug 2012 14:50:16 +0000 (16:50 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 30 Aug 2012 14:54:20 +0000 (16:54 +0200)
src/app-layer-parser.c

index be8f48504838893fe5b1374661d7f3daa9c8e763..e5ac4694b8ea31a90c120bb1dd65f4764a173ea6 100644 (file)
@@ -870,6 +870,9 @@ int AppLayerParse(void *local_data, Flow *f, uint8_t proto,
     /* Do this check before calling AppLayerParse */
     if (flags & STREAM_GAP) {
         SCLogDebug("stream gap detected (missing packets), this is not yet supported.");
+
+        if (f->alstate != NULL)
+            AppLayerStreamTruncated(proto, f->alstate, flags);
         goto error;
     }