From fbb0490c31fc62b60240e3fde4a1462555105f9b Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 25 Aug 2016 15:12:39 +0200 Subject: [PATCH] detect-dsize: extra match support --- src/detect-dsize.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/detect-dsize.c b/src/detect-dsize.c index 0368c8364b..6eb7d1b5aa 100644 --- a/src/detect-dsize.c +++ b/src/detect-dsize.c @@ -322,8 +322,10 @@ PrefilterPacketDsizeMatch(DetectEngineThreadCtx *det_ctx, Packet *p, const void } const PrefilterPacketHeaderCtx *ctx = pectx; - const uint16_t dsize = p->payload_len; + if (PrefilterPacketHeaderExtraMatch(ctx, p) == FALSE) + return; + const uint16_t dsize = p->payload_len; if (DsizeMatch(dsize, ctx->v1.u8[0], ctx->v1.u16[1], ctx->v1.u16[2])) { SCLogDebug("packet matches dsize %u", dsize);