From: Martin Willi Date: Fri, 29 May 2009 09:02:47 +0000 (+0200) Subject: fixed memleak when installing synced virtual IPs X-Git-Tag: 4.4.0~93 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=80624c79d55bda332e9ff8296d60908e7f09b1a3;p=thirdparty%2Fstrongswan.git fixed memleak when installing synced virtual IPs --- diff --git a/src/charon/plugins/ha_sync/ha_sync_dispatcher.c b/src/charon/plugins/ha_sync/ha_sync_dispatcher.c index afb024a4fd..84f311c8a7 100644 --- a/src/charon/plugins/ha_sync/ha_sync_dispatcher.c +++ b/src/charon/plugins/ha_sync/ha_sync_dispatcher.c @@ -228,9 +228,10 @@ static void process_ike_update(private_ha_sync_dispatcher_t *this, ike_sa->set_other_host(ike_sa, value.host->clone(value.host)); break; case HA_SYNC_LOCAL_VIP: + ike_sa->set_virtual_ip(ike_sa, TRUE, value.host); + break; case HA_SYNC_REMOTE_VIP: - ike_sa->set_virtual_ip(ike_sa, attribute == HA_SYNC_LOCAL_VIP, - value.host->clone(value.host)); + ike_sa->set_virtual_ip(ike_sa, FALSE, value.host); break; case HA_SYNC_ADDITIONAL_ADDR: ike_sa->add_additional_address(ike_sa,