Commit 14ea7ff2 authored by Nils Goroll's avatar Nils Goroll

assert that the destination pointer for vcl_get be zero

This is already implied in the code (because otherwise we would
potentially leak a vcl reference (busy counter)).

(yes, I have run make check with this)
parent 0867bb1a
...@@ -260,6 +260,7 @@ void ...@@ -260,6 +260,7 @@ void
vcl_get(struct vcl **vcc, struct vcl *vcl) vcl_get(struct vcl **vcc, struct vcl *vcl)
{ {
AN(vcc); AN(vcc);
AZ(*vcc);
Lck_Lock(&vcl_mtx); Lck_Lock(&vcl_mtx);
if (vcl == NULL) if (vcl == 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