Commit e5b54119 authored by Geoff Simmons's avatar Geoff Simmons

for dynamic, copy a changed pattern strictly under the mutex double-check

parent 02dfa2f9
......@@ -160,11 +160,12 @@ match(struct sess *sp, struct vmod_priv *priv_vcl, struct vmod_priv *priv_call,
erroffset);
else
priv_call->free = VRT_re_fini;
}
if (dynamic) {
if (ov->pattern != NULL)
free(ov->pattern);
ov->pattern = strdup(pattern);
if (dynamic) {
if (ov->pattern != NULL)
free(ov->pattern);
ov->pattern = strdup(pattern);
}
}
AZ(pthread_mutex_unlock(&re_mutex));
}
......
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