[master] 0bf8e9c78 flexelint e128804977f21abc6becff03efd853cd71fd3c69
Nils Goroll
nils.goroll at uplex.de
Wed Nov 18 14:35:08 UTC 2020
commit 0bf8e9c78062710c4cfee9819cbaa1ddc28b60e1
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Wed Nov 18 15:15:30 2020 +0100
flexelint e128804977f21abc6becff03efd853cd71fd3c69
diff --git a/bin/varnishd/cache/cache_req_body.c b/bin/varnishd/cache/cache_req_body.c
index bedd342c5..f4eedc1f5 100644
--- a/bin/varnishd/cache/cache_req_body.c
+++ b/bin/varnishd/cache/cache_req_body.c
@@ -270,7 +270,8 @@ VRB_Free(struct req *req)
r = HSH_DerefObjCore(req->wrk, &req->body_oc, 0);
// each busyobj may have gained a reference
- assert (r <= req->restarts + 1);
+ assert (r >= 0);
+ assert ((unsigned)r <= req->restarts + 1);
}
/*----------------------------------------------------------------------
More information about the varnish-commit
mailing list