From 0edf053f3143ed22d48174d43274a5ba41efed60 Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Fri, 21 Oct 2011 23:58:53 +0530 Subject: [PATCH] if app layer inspection is disabled, immediately set the eof flag --- src/app-layer-parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app-layer-parser.c b/src/app-layer-parser.c index a4839cd299..3982b0dd9a 100644 --- a/src/app-layer-parser.c +++ b/src/app-layer-parser.c @@ -913,6 +913,7 @@ int AppLayerParse(Flow *f, uint8_t proto, uint8_t flags, uint8_t *input, /* set the packets to no inspection and reassembly if required */ if (parser_state->flags & APP_LAYER_PARSER_NO_INSPECTION) { + AppLayerSetEOF(f); FlowSetNoPayloadInspectionFlag(f); FlowSetSessionNoApplayerInspectionFlag(f); @@ -950,6 +951,7 @@ error: /* Set the no app layer inspection flag for both * the stream in this Flow */ FlowSetSessionNoApplayerInspectionFlag(f); + AppLayerSetEOF(f); if (f->src.family == AF_INET) { char src[16];