xbits: fix coverity warnings

Switch statement would contain NOALERT even though this was
unreachable.
pull/1454/head
Victor Julien 10 years ago
parent 54d5e2eed5
commit 1a83fee5f5

@ -260,9 +260,7 @@ int DetectFlowbitSetup (DetectEngineCtx *de_ctx, Signature *s, char *rawstr)
sm->ctx = (SigMatchCtx *)cd; sm->ctx = (SigMatchCtx *)cd;
switch (fb_cmd) { switch (fb_cmd) {
case DETECT_FLOWBITS_CMD_NOALERT: /* case DETECT_FLOWBITS_CMD_NOALERT can't happen here */
/* nothing to do */
break;
case DETECT_FLOWBITS_CMD_ISNOTSET: case DETECT_FLOWBITS_CMD_ISNOTSET:
case DETECT_FLOWBITS_CMD_ISSET: case DETECT_FLOWBITS_CMD_ISSET:

@ -403,9 +403,7 @@ int DetectHostbitSetup (DetectEngineCtx *de_ctx, Signature *s, char *rawstr)
sm->ctx = (void *)cd; sm->ctx = (void *)cd;
switch (fb_cmd) { switch (fb_cmd) {
case DETECT_XBITS_CMD_NOALERT: /* case DETECT_XBITS_CMD_NOALERT can't happen here */
/* nothing to do */
break;
case DETECT_XBITS_CMD_ISNOTSET: case DETECT_XBITS_CMD_ISNOTSET:
case DETECT_XBITS_CMD_ISSET: case DETECT_XBITS_CMD_ISSET:

@ -327,9 +327,7 @@ int DetectXbitSetup (DetectEngineCtx *de_ctx, Signature *s, char *rawstr)
sm->ctx = (void *)cd; sm->ctx = (void *)cd;
switch (fb_cmd) { switch (fb_cmd) {
case DETECT_XBITS_CMD_NOALERT: /* case DETECT_XBITS_CMD_NOALERT can't happen here */
/* nothing to do */
break;
case DETECT_XBITS_CMD_ISNOTSET: case DETECT_XBITS_CMD_ISNOTSET:
case DETECT_XBITS_CMD_ISSET: case DETECT_XBITS_CMD_ISSET:

Loading…
Cancel
Save