From: Victor Julien Date: Thu, 30 Aug 2012 14:50:16 +0000 (+0200) Subject: stream/app layer: call new Truncate callback for data gap case as well. X-Git-Tag: suricata-1.4beta1~51 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f93c54136c3d2fe87bd4c47c1774d72bb3943200;p=thirdparty%2Fsuricata.git stream/app layer: call new Truncate callback for data gap case as well. --- 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; }