From 747fd544a7b1d65c7db66927b6a6260ea944a4d2 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 10 Sep 2012 11:44:18 +0200 Subject: [PATCH] Properly remove broadcast address from mem pools --- src/libhydra/attributes/mem_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libhydra/attributes/mem_pool.c b/src/libhydra/attributes/mem_pool.c index b2fed2703..39159bfb0 100644 --- a/src/libhydra/attributes/mem_pool.c +++ b/src/libhydra/attributes/mem_pool.c @@ -499,7 +499,7 @@ mem_pool_t *mem_pool_create(char *name, host_t *base, int bits) if (this->size > 2) { /* do not use first and last addresses of a block */ this->unused++; - this->size--; + this->size -= 2; } this->base = base->clone(base); }