fix NULL indirection while parsing dce sigs - clang fix

remotes/origin/master-1.0.x
Anoop Saldanha 15 years ago committed by Victor Julien
parent f094523eb1
commit eb9adf8129

@ -153,7 +153,7 @@ static int DetectDistanceSetup (DetectEngineCtx *de_ctx, Signature *s,
&s->pmatch, &s->pmatch_tail, &s->pmatch, &s->pmatch_tail,
&s->dmatch, &s->dmatch_tail); &s->dmatch, &s->dmatch_tail);
pm = pm1; pm = pm1;
} else if (pm2_ots->idx > dcem->idx) { } else {
/* within is against pm1, pm = pm1 */ /* within is against pm1, pm = pm1 */
pm = pm1; pm = pm1;
} }

@ -156,7 +156,7 @@ static int DetectWithinSetup (DetectEngineCtx *de_ctx, Signature *s, char *withi
&s->pmatch, &s->pmatch_tail, &s->pmatch, &s->pmatch_tail,
&s->dmatch, &s->dmatch_tail); &s->dmatch, &s->dmatch_tail);
pm = pm1; pm = pm1;
} else if (pm2_ots->idx > dcem->idx) { } else {
/* within is against pm1, pm = pm1 */ /* within is against pm1, pm = pm1 */
pm = pm1; pm = pm1;
} }

Loading…
Cancel
Save