aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-05-29 11:02:47 +0200
committerMartin Willi <martin@revosec.ch>2010-04-07 13:55:13 +0200
commit80624c79d55bda332e9ff8296d60908e7f09b1a3 (patch)
tree5974dd2e83ea4fc2fa507def045fcf9ff1fdff50 /src
parentb1d495f469374bad284a41bb0fb9bbde744ee893 (diff)
downloadstrongswan-80624c79d55bda332e9ff8296d60908e7f09b1a3.tar.bz2
strongswan-80624c79d55bda332e9ff8296d60908e7f09b1a3.tar.xz
fixed memleak when installing synced virtual IPs
Diffstat (limited to 'src')
-rw-r--r--src/charon/plugins/ha_sync/ha_sync_dispatcher.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/charon/plugins/ha_sync/ha_sync_dispatcher.c b/src/charon/plugins/ha_sync/ha_sync_dispatcher.c
index afb024a4f..84f311c8a 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,