[master] aa21e4b I may be incompetent at math, but I'm not _that_ incompetent at math :-)

Poul-Henning Kamp phk at FreeBSD.org
Mon Jan 15 22:15:10 UTC 2018


commit aa21e4b2f8c3b884c4a9c32ef74ed5625e4c6916
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Jan 15 22:14:14 2018 +0000

    I may be incompetent at math, but I'm not _that_ incompetent at math :-)

diff --git a/lib/libvarnishapi/vsm.c b/lib/libvarnishapi/vsm.c
index 282865b..cb8118b 100644
--- a/lib/libvarnishapi/vsm.c
+++ b/lib/libvarnishapi/vsm.c
@@ -718,7 +718,7 @@ VSM_Map(struct vsm *vd, struct vsm_fantom *vf)
 
 	sz = strtoul(vg->av[3], NULL, 10);
 	assert(sz > 0);
-	len = RUP2(sz, ps);
+	len = RUP2(of + sz, ps);
 
 	vsb = VSB_new_auto();
 	AN(vsb);


More information about the varnish-commit mailing list