Strictly enforce address family match while acquiring mem_pool IPs
authorMartin Willi <martin@revosec.ch>
Mon, 27 Aug 2012 14:24:44 +0000 (16:24 +0200)
committerMartin Willi <martin@revosec.ch>
Thu, 30 Aug 2012 14:43:44 +0000 (16:43 +0200)
src/libhydra/attributes/mem_pool.c

index 33b116d..b2fed27 100644 (file)
@@ -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;
        }