Commit a3a5bbf4 authored by Geoff Simmons's avatar Geoff Simmons

Safely copy strings added to a set object.

parent c2ede2a0
......@@ -638,7 +638,7 @@ vmod_set_add(VRT_CTX, struct vmod_re2_set *set, VCL_STRING pattern,
set->vcl_name, pattern, string);
REPLACE(set->string[n], string);
set->string[n] = strdup(string);
if (backend != NULL) {
if ((set->backend = realloc(set->backend,
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