]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 33b116d057f5cf3578b0cd1103180aa59cd6a412..b2fed2703241df70794d6a0739babfccbf2792e0 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;
        }