diff --git a/src/app-layer-parser.c b/src/app-layer-parser.c index be8f485048..e5ac4694b8 100644 --- a/src/app-layer-parser.c +++ b/src/app-layer-parser.c @@ -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; }