[master] 266ce5fb5 Always AN function pointers before use.
Poul-Henning Kamp
phk at FreeBSD.org
Tue Oct 12 12:15:07 UTC 2021
commit 266ce5fb50811718dbf6b629602afb347196cafc
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Oct 12 11:04:43 2021 +0000
Always AN function pointers before use.
diff --git a/bin/varnishd/cache/cache_wrk.c b/bin/varnishd/cache/cache_wrk.c
index db4139a98..b8bc3efbd 100644
--- a/bin/varnishd/cache/cache_wrk.c
+++ b/bin/varnishd/cache/cache_wrk.c
@@ -483,6 +483,7 @@ Pool_Work_Thread(struct pool *pp, struct worker *wrk)
do {
memset(wrk->task, 0, sizeof wrk->task);
assert(wrk->pool == pp);
+ AN(tp->func);
tp->func(wrk, tp->priv);
if (DO_DEBUG(DBG_VCLREL) && wrk->wpriv->vcl != NULL)
VCL_Rel(&wrk->wpriv->vcl);
More information about the varnish-commit
mailing list