From: Tobias Brunner Date: Thu, 13 Oct 2016 16:39:09 +0000 (+0200) Subject: ha: Fix assignment of IP addresses if multiple pools are defined X-Git-Tag: 5.5.2dr5~49 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=4e382f5ffcb8590b30f8953640eb1e111bf1ced9;p=thirdparty%2Fstrongswan.git ha: Fix assignment of IP addresses if multiple pools are defined Fixes #2146. --- diff --git a/src/libcharon/plugins/ha/ha_attribute.c b/src/libcharon/plugins/ha/ha_attribute.c index b20ef876ad..34d6efc480 100644 --- a/src/libcharon/plugins/ha/ha_attribute.c +++ b/src/libcharon/plugins/ha/ha_attribute.c @@ -215,8 +215,12 @@ METHOD(attribute_provider_t, acquire_address, host_t*, } if (offset == -1) { - DBG1(DBG_CFG, "no address left in HA pool '%s' belonging to" - "a responsible segment", name); + DBG1(DBG_CFG, "no address belonging to a responsible segment left " + "in HA pool '%s'", name); + } + else + { + break; } } this->mutex->unlock(this->mutex);