make pcre respect discontinue_matching flag in content matching functions

remotes/origin/master-1.0.x
Anoop Saldanha 15 years ago committed by Victor Julien
parent e8ecc94d6a
commit 60c770c434

@ -313,6 +313,9 @@ static int DoInspectDcePayload(DetectEngineCtx *de_ctx,
SCReturnInt(1);
}
if (det_ctx->discontinue_matching)
SCReturnInt(0);
det_ctx->payload_offset = prev_payload_offset;
det_ctx->pcre_match_start_offset = prev_offset;
} while (1);

@ -287,6 +287,9 @@ static int DoInspectPacketPayload(DetectEngineCtx *de_ctx,
SCReturnInt(1);
}
if (det_ctx->discontinue_matching)
SCReturnInt(0);
det_ctx->payload_offset = prev_payload_offset;
det_ctx->pcre_match_start_offset = prev_offset;
} while (1);

@ -270,6 +270,9 @@ static int DoInspectPacketUri(DetectEngineCtx *de_ctx,
SCReturnInt(1);
}
if (det_ctx->discontinue_matching)
SCReturnInt(0);
det_ctx->payload_offset = prev_payload_offset;
det_ctx->pcre_match_start_offset = prev_offset;
} while (1);

Loading…
Cancel
Save