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);