diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-09-10 11:44:18 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-09-10 11:44:18 +0200 |
commit | 747fd544a7b1d65c7db66927b6a6260ea944a4d2 (patch) | |
tree | 9dd360578dad0a9c636f65244f22c3df26c30831 /src/libhydra | |
parent | 32e30f15cb02e5d654d3e44e0c085376cf7f2aac (diff) | |
download | strongswan-747fd544a7b1d65c7db66927b6a6260ea944a4d2.tar.bz2 strongswan-747fd544a7b1d65c7db66927b6a6260ea944a4d2.tar.xz |
Properly remove broadcast address from mem pools
Diffstat (limited to 'src/libhydra')
-rw-r--r-- | src/libhydra/attributes/mem_pool.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |