aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-09-10 11:44:18 +0200
committerTobias Brunner <tobias@strongswan.org>2012-09-10 11:44:18 +0200
commit747fd544a7b1d65c7db66927b6a6260ea944a4d2 (patch)
tree9dd360578dad0a9c636f65244f22c3df26c30831 /src/libhydra
parent32e30f15cb02e5d654d3e44e0c085376cf7f2aac (diff)
downloadstrongswan-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.c2
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);
}