summaryrefslogtreecommitdiff
path: root/accel-pptpd
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2010-12-23 09:24:21 +0300
committerDmitry Kozlov <xeb@mail.ru>2010-12-23 09:24:21 +0300
commit4f5fe208bdf07155b5295a3d908db98a303bffe7 (patch)
treeea41efa81deafd5e6350c7f00d171dd5ae47ec9c /accel-pptpd
parentb398bf9a8adc7c98f22473fba9c839bbe8f1f7f6 (diff)
downloadaccel-ppp-4f5fe208bdf07155b5295a3d908db98a303bffe7.tar.gz
accel-ppp-4f5fe208bdf07155b5295a3d908db98a303bffe7.zip
move timestamp initialization to proper place
Diffstat (limited to 'accel-pptpd')
-rw-r--r--accel-pptpd/triton/mempool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pptpd/triton/mempool.c b/accel-pptpd/triton/mempool.c
index 65597921..7c653e67 100644
--- a/accel-pptpd/triton/mempool.c
+++ b/accel-pptpd/triton/mempool.c
@@ -165,10 +165,10 @@ void __export *mempool_alloc_md(mempool_t *pool, const char *fname, int line)
it->owner = p;
it->magic2 = p->magic;
it->magic1 = MAGIC1;
- it->timestamp = 0;
*(uint64_t*)(it->ptr + p->size) = it->magic2;
list_add_tail(&it->entry,&p->items);
#ifdef VALGRIND
+ it->timestamp = 0;
VALGRIND_MAKE_MEM_NOACCESS(&it->owner, size - sizeof(it->entry) - sizeof(it->timestamp));
#endif
it = (struct _item_t *)((char *)it + size);