[master] 557e99bf6 range: Polish

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Tue Aug 31 10:48:06 UTC 2021


commit 557e99bf6359af015a801534717e46149da992d9
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Tue Aug 31 12:46:04 2021 +0200

    range: Polish
    
    Spotted by Flexelint.

diff --git a/bin/varnishd/cache/cache_range.c b/bin/varnishd/cache/cache_range.c
index cecc1efdb..b9944aa6e 100644
--- a/bin/varnishd/cache/cache_range.c
+++ b/bin/varnishd/cache/cache_range.c
@@ -307,7 +307,7 @@ VRG_CheckBo(struct busyobj *bo)
 		}						\
 	} while (0)
 
-	crlen = crhi - crlo + 1;
+	crlen = (crhi - crlo) + 1;
 	RANGE_CHECK(clen, ==, crlen, "content length");
 
 	/* NB: if the client didn't specify a low range the high range


More information about the varnish-commit mailing list