Commit b01518a1 by Geoff Simmons

Don't crash regex object finalization when the object is NULL,

for example if there was an error initializing the object.
parent 67f43312
Pipeline #198 skipped
......@@ -138,6 +138,8 @@ vmod_regex__fini(struct vmod_re_regex **rep)
{
struct vmod_re_regex *re;
if (rep == NULL || *rep == NULL)
return;
re = *rep;
*rep = NULL;
AZ(pthread_key_delete(re->ovk));
......
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