Fix compiler warning in isdataat keyword setup code.

remotes/origin/master-1.1.x
Victor Julien 15 years ago
parent bbe071252b
commit a3be22cd5a

@ -307,12 +307,9 @@ int DetectIsdataatSetup (DetectEngineCtx *de_ctx, Signature *s, char *isdataatst
SigMatchAppendSMToList(s, sm, DETECT_SM_LIST_PMATCH); SigMatchAppendSMToList(s, sm, DETECT_SM_LIST_PMATCH);
} }
} else { } else {
int list_type; int list_type = -1;
if (pm->type == DETECT_PCRE || pm->type == DETECT_BYTEJUMP) { if (pm->type == DETECT_PCRE || pm->type == DETECT_BYTEJUMP) {
list_type = SigMatchListSMBelongsTo(s, pm); list_type = SigMatchListSMBelongsTo(s, pm);
if (list_type == -1) {
goto error;
}
} else { } else {
switch (pm->type) { switch (pm->type) {
case DETECT_CONTENT: case DETECT_CONTENT:
@ -338,6 +335,9 @@ int DetectIsdataatSetup (DetectEngineCtx *de_ctx, Signature *s, char *isdataatst
break; break;
} /* switch */ } /* switch */
} /* else */ } /* else */
if (list_type == -1) {
goto error;
}
SigMatchAppendSMToList(s, sm, list_type); SigMatchAppendSMToList(s, sm, list_type);
} /* else - if (pm == NULL) */ } /* else - if (pm == NULL) */

Loading…
Cancel
Save