diff options
author | Martin Willi <martin@revosec.ch> | 2012-08-24 12:31:24 +0000 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-08-30 16:43:42 +0200 |
commit | 497ce2cf51d3e80302e24e5bdf7df566d80b4828 (patch) | |
tree | 311e91603cae7981db1ace7009a0e880cb87eed5 /src/libhydra/attributes/attribute_manager.c | |
parent | 101d26babeae0a6444bf7a355cbd3fb2e7497fae (diff) | |
download | strongswan-497ce2cf51d3e80302e24e5bdf7df566d80b4828.tar.bz2 strongswan-497ce2cf51d3e80302e24e5bdf7df566d80b4828.tar.xz |
Support multiple address pools configured on a peer_cfg
Diffstat (limited to 'src/libhydra/attributes/attribute_manager.c')
-rw-r--r-- | src/libhydra/attributes/attribute_manager.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/libhydra/attributes/attribute_manager.c b/src/libhydra/attributes/attribute_manager.c index 95520531e..250302356 100644 --- a/src/libhydra/attributes/attribute_manager.c +++ b/src/libhydra/attributes/attribute_manager.c @@ -87,7 +87,7 @@ METHOD(attribute_manager_t, acquire_address, host_t*, return host; } -METHOD(attribute_manager_t, release_address, void, +METHOD(attribute_manager_t, release_address, bool, private_attribute_manager_t *this, char *pool, host_t *address, identification_t *id) { @@ -108,10 +108,7 @@ METHOD(attribute_manager_t, release_address, void, enumerator->destroy(enumerator); this->lock->unlock(this->lock); - if (!found) - { - DBG1(DBG_CFG, "releasing address to pool '%s' failed", pool); - } + return found; } /** |