[master] 748dd7e Add a couple of clarifying asserts

Poul-Henning Kamp phk at FreeBSD.org
Thu Sep 14 21:16:05 UTC 2017


commit 748dd7e60ee0b3ad15267127a55cc05e34821cbf
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