r4814 - trunk/varnish-cache/bin/varnishd
phk at varnish-cache.org
phk at varnish-cache.org
Tue May 18 14:09:49 CEST 2010
Author: phk
Date: 2010-05-18 14:09:48 +0200 (Tue, 18 May 2010)
New Revision: 4814
Modified:
trunk/varnish-cache/bin/varnishd/mgt_shmem.c
Log:
Protect mgt_SHM_Alloc() with a couple of asserts.
Modified: trunk/varnish-cache/bin/varnishd/mgt_shmem.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_shmem.c 2010-05-18 12:09:16 UTC (rev 4813)
+++ trunk/varnish-cache/bin/varnishd/mgt_shmem.c 2010-05-18 12:09:48 UTC (rev 4814)
@@ -70,6 +70,8 @@
struct shmalloc *sha, *sha2;
unsigned seq;
+ ASSERT_MGT();
+ AN(loghead);
/* Round up to pointersize */
size += sizeof(sha) - 1;
size &= ~(sizeof(sha) - 1);
More information about the varnish-commit
mailing list