From 70b53a0293ab585e46183eb4f103df920e5763ea Mon Sep 17 00:00:00 2001 From: Gurvinder Singh Date: Mon, 5 Oct 2009 17:54:57 +0300 Subject: [PATCH] fixed the ispayload inspecting func --- src/detect.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/detect.c b/src/detect.c index d0ecbc7078..8e08c97476 100644 --- a/src/detect.c +++ b/src/detect.c @@ -620,8 +620,10 @@ static int SignatureIsInspectingPayload(DetectEngineCtx *de_ctx, Signature *s) { goto inspect_payload; for (; sm != NULL; sm = sm->next) - if (!(sigmatch_table[sm->type].flags & SIGMATCH_PAYLOAD)) - return 0; + if (sigmatch_table[sm->type].flags & SIGMATCH_PAYLOAD) + goto inspect_payload; + + return 0; inspect_payload: if (!(de_ctx->flags & DE_QUIET))