detect: Increase flag size for byte_jump

pull/5139/head
Jeff Lucovsky 6 years ago committed by Victor Julien
parent 23a65b5824
commit 620659b5f3

@ -90,7 +90,7 @@ void DetectBytejumpRegister (void)
*/
int DetectBytejumpDoMatch(DetectEngineThreadCtx *det_ctx, const Signature *s,
const SigMatchCtx *ctx, const uint8_t *payload, uint32_t payload_len,
uint8_t flags, int32_t offset)
uint16_t flags, int32_t offset)
{
SCEnter();

@ -77,7 +77,7 @@ void DetectBytejumpRegister (void);
* error as a match.
*/
int DetectBytejumpDoMatch(DetectEngineThreadCtx *, const Signature *, const SigMatchCtx *,
const uint8_t *, uint32_t, uint8_t, int32_t);
const uint8_t *, uint32_t, uint16_t, int32_t);
#endif /* __DETECT_BYTEJUMP_H__ */

@ -486,7 +486,7 @@ int DetectEngineContentInspection(DetectEngineCtx *de_ctx, DetectEngineThreadCtx
} else if (smd->type == DETECT_BYTEJUMP) {
DetectBytejumpData *bjd = (DetectBytejumpData *)smd->ctx;
uint8_t bjflags = bjd->flags;
uint16_t bjflags = bjd->flags;
int32_t offset = bjd->offset;
if (bjflags & DETECT_BYTEJUMP_OFFSET_BE) {

Loading…
Cancel
Save