[master] fb8d6b5 Add a defensive assert
Poul-Henning Kamp
phk at FreeBSD.org
Mon Nov 23 11:48:33 CET 2015
commit fb8d6b5ee5f0137842794f88a8082c58a87f8239
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Nov 19 10:11:19 2015 +0000
Add a defensive assert
diff --git a/bin/varnishd/storage/stevedore.c b/bin/varnishd/storage/stevedore.c
index 0929ba8..77e54a3 100644
--- a/bin/varnishd/storage/stevedore.c
+++ b/bin/varnishd/storage/stevedore.c
@@ -68,6 +68,7 @@ default_oc_freeobj(struct worker *wrk, struct objcore *oc)
CHECK_OBJ_NOTNULL(wrk, WORKER_MAGIC);
CHECK_OBJ_NOTNULL(oc, OBJCORE_MAGIC);
+ CHECK_OBJ_NOTNULL(oc->stobj, STOREOBJ_MAGIC);
ObjSlim(wrk, oc);
CAST_OBJ_NOTNULL(o, oc->stobj->priv, OBJECT_MAGIC);
o->magic = 0;
More information about the varnish-commit
mailing list