From: Tobias Brunner Date: Mon, 10 Sep 2012 09:44:18 +0000 (+0200) Subject: Properly remove broadcast address from mem pools X-Git-Tag: 5.0.1~137 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=747fd544a7b1d65c7db66927b6a6260ea944a4d2;p=thirdparty%2Fstrongswan.git Properly remove broadcast address from mem pools --- diff --git a/src/libhydra/attributes/mem_pool.c b/src/libhydra/attributes/mem_pool.c index b2fed27032..39159bfb01 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); }