detect/byte_math: Use proper index for rvalue var

Use the proper index for extracting the rvalue variable value.
pull/9198/head
Jeff Lucovsky 2 years ago committed by Victor Julien
parent 47e268d609
commit fb847d8bb0

@ -583,7 +583,7 @@ uint8_t DetectEngineContentInspection(DetectEngineCtx *de_ctx, DetectEngineThrea
} }
uint64_t rvalue; uint64_t rvalue;
if (bmd->flags & DETECT_BYTEMATH_FLAG_RVALUE_VAR) { if (bmd->flags & DETECT_BYTEMATH_FLAG_RVALUE_VAR) {
rvalue = det_ctx->byte_values[bmd->local_id]; rvalue = det_ctx->byte_values[bmd->rvalue];
} else { } else {
rvalue = bmd->rvalue; rvalue = bmd->rvalue;
} }

Loading…
Cancel
Save