From eb9adf8129f57a5a4722f04f41dcd28e77a4ed65 Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Thu, 29 Jul 2010 22:25:04 +0530 Subject: [PATCH] fix NULL indirection while parsing dce sigs - clang fix --- src/detect-distance.c | 2 +- src/detect-within.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detect-distance.c b/src/detect-distance.c index 2e3e37ec54..6b5cfb045e 100644 --- a/src/detect-distance.c +++ b/src/detect-distance.c @@ -153,7 +153,7 @@ static int DetectDistanceSetup (DetectEngineCtx *de_ctx, Signature *s, &s->pmatch, &s->pmatch_tail, &s->dmatch, &s->dmatch_tail); pm = pm1; - } else if (pm2_ots->idx > dcem->idx) { + } else { /* within is against pm1, pm = pm1 */ pm = pm1; } diff --git a/src/detect-within.c b/src/detect-within.c index a4164cb3f8..ec6b7d6caa 100644 --- a/src/detect-within.c +++ b/src/detect-within.c @@ -156,7 +156,7 @@ static int DetectWithinSetup (DetectEngineCtx *de_ctx, Signature *s, char *withi &s->pmatch, &s->pmatch_tail, &s->dmatch, &s->dmatch_tail); pm = pm1; - } else if (pm2_ots->idx > dcem->idx) { + } else { /* within is against pm1, pm = pm1 */ pm = pm1; }