Commit ab860e78 authored by Geoff Simmons's avatar Geoff Simmons

Ensure default never_capture=false in set.add().

parent ac48737d
......@@ -275,6 +275,8 @@ vmod_set_add(VRT_CTX, struct vmod_re2_set *set, struct vmod_set_add_arg *args)
namelen = strlen(set->vcl_name) + digits + 2;
vcl_name = malloc(namelen);
snprintf(vcl_name, namelen, "%s_%d", set->vcl_name, n);
if (!args->valid_never_capture)
args->never_capture = 0;
vmod_regex__init(ctx, &re, vcl_name, pattern, set->opts.utf8,
set->opts.longest_match, set->opts.max_mem,
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