r1075 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Mon Sep 18 16:54:21 CEST 2006
Author: phk
Date: 2006-09-18 16:54:20 +0200 (Mon, 18 Sep 2006)
New Revision: 1075
Modified:
trunk/varnish-cache/bin/varnishd/shmlog.c
Log:
Off by one.
Modified: trunk/varnish-cache/bin/varnishd/shmlog.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/shmlog.c 2006-09-18 14:29:36 UTC (rev 1074)
+++ trunk/varnish-cache/bin/varnishd/shmlog.c 2006-09-18 14:54:20 UTC (rev 1075)
@@ -79,7 +79,7 @@
assert(loghead->ptr < loghead->size);
/* Wrap if necessary */
- if (loghead->ptr + 5 + l + 1 > loghead->size)
+ if (loghead->ptr + 5 + l + 1 >= loghead->size)
vsl_wrap();
p = logstart + loghead->ptr;
loghead->ptr += 5 + l;
More information about the varnish-commit
mailing list