aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/attributes/mem_pool.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-08-27 16:24:44 +0200
committerMartin Willi <martin@revosec.ch>2012-08-30 16:43:44 +0200
commit40e90898895c20d4807f14957bd58faa663127f0 (patch)
tree5399876fd02527d1bb9fca6ab4164852d79c262a /src/libhydra/attributes/mem_pool.c
parent13f11ccf46de38945b16418792decce449bd7515 (diff)
downloadstrongswan-40e90898895c20d4807f14957bd58faa663127f0.tar.bz2
strongswan-40e90898895c20d4807f14957bd58faa663127f0.tar.xz
Strictly enforce address family match while acquiring mem_pool IPs
Diffstat (limited to 'src/libhydra/attributes/mem_pool.c')
-rw-r--r--src/libhydra/attributes/mem_pool.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libhydra/attributes/mem_pool.c b/src/libhydra/attributes/mem_pool.c
index 33b116d05..b2fed2703 100644
--- a/src/libhydra/attributes/mem_pool.c
+++ b/src/libhydra/attributes/mem_pool.c
@@ -226,11 +226,9 @@ METHOD(mem_pool_t, acquire_address, host_t*,
return requested->clone(requested);
}
- if (!requested->is_anyaddr(requested) &&
- requested->get_family(requested) !=
+ if (requested->get_family(requested) !=
this->base->get_family(this->base))
{
- DBG1(DBG_CFG, "IP pool address family mismatch");
return NULL;
}