[master] 66b17b78d hash: Missing oh null check in HSH_Fail()
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Wed Aug 27 15:23:07 UTC 2025
commit 66b17b78dc469e0e946a4bfa95aec59fa2f9392d
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Mon Aug 25 15:25:59 2025 +0200
hash: Missing oh null check in HSH_Fail()
diff --git a/bin/varnishd/cache/cache_hash.c b/bin/varnishd/cache/cache_hash.c
index a49a1f76a..551e4ab46 100644
--- a/bin/varnishd/cache/cache_hash.c
+++ b/bin/varnishd/cache/cache_hash.c
@@ -915,7 +915,7 @@ HSH_Fail(struct worker *wrk, struct objcore *oc)
CHECK_OBJ_NOTNULL(oc, OBJCORE_MAGIC);
CHECK_OBJ_NOTNULL(oc->boc, BOC_MAGIC);
oh = oc->objhead;
- CHECK_OBJ(oh, OBJHEAD_MAGIC);
+ CHECK_OBJ_NOTNULL(oh, OBJHEAD_MAGIC);
INIT_OBJ(&rush, RUSH_MAGIC);
/*
More information about the varnish-commit
mailing list