Commit b904aca9 authored by Geoff Simmons's avatar Geoff Simmons

minor fix

parent 5884beb0
Pipeline #50 skipped
...@@ -290,7 +290,7 @@ vmod_digest__init(VRT_CTX, struct vmod_blobdigest_digest **digestp, ...@@ -290,7 +290,7 @@ vmod_digest__init(VRT_CTX, struct vmod_blobdigest_digest **digestp,
AN(digest->vcl_name); AN(digest->vcl_name);
AZ(digest->result); AZ(digest->result);
init(hash, &digest->ctx); init(hash, &digest->ctx);
if (initb != NULL) if (initb != NULL && initb->len > 0 && initb->priv != NULL)
update(hash, &digest->ctx, initb->priv, initb->len); update(hash, &digest->ctx, initb->priv, initb->len);
} }
......
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