Fix match_body return value

it could return "true" for errors (which are negative, internally)
parent d4289cb6
......@@ -753,7 +753,7 @@ reip_match_body(struct re_iter_priv *reip, struct vmod_re_regex *re,
r = reip->ret;
memset(reip, 0, sizeof *reip);
return (r);
return (r > 0);
}
VCL_BOOL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment