Commit b9f366c2 authored by Nils Goroll's avatar Nils Goroll

Don't panic in fini it init was never called

Ref: https://github.com/varnishcache/varnish-cache/issues/2297
parent 70b0cabb
Pipeline #181 skipped
......@@ -312,6 +312,9 @@ vmod_digest__fini(struct vmod_blobdigest_digest **digestp)
struct vmod_blobdigest_digest *digest;
digest = *digestp;
if (digest == NULL)
return;
*digestp = NULL;
CHECK_OBJ_NOTNULL(digest, VMOD_BLOBDIGEST_DIGEST_MAGIC);
if (digest->result != NULL) {
......
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