[5.2] ecee294 Add a couple of clarifying asserts
PÃ¥l Hermunn Johansen
hermunn at varnish-software.com
Fri Sep 15 11:17:31 UTC 2017
commit ecee294ce6bdd14bb8e4b3b775442f632468a527
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Sep 14 21:04:11 2017 +0000
Add a couple of clarifying asserts
diff --git a/bin/varnishd/cache/cache_ban.c b/bin/varnishd/cache/cache_ban.c
index 39cb394..43f89b2 100644
--- a/bin/varnishd/cache/cache_ban.c
+++ b/bin/varnishd/cache/cache_ban.c
@@ -566,6 +566,8 @@ BAN_CheckObject(struct worker *wrk, struct objcore *oc, struct req *req)
if (b0 == bn)
return (0);
+ AN(b0);
+ AN(bn);
/*
* This loop is safe without locks, because we know we hold
More information about the varnish-commit
mailing list