strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1d495f
)
fixed memleak when installing synced virtual IPs
author
Martin Willi
<martin@strongswan.org>
Fri, 29 May 2009 09:02:47 +0000
(11:02 +0200)
committer
Martin Willi
<martin@revosec.ch>
Wed, 7 Apr 2010 11:55:13 +0000
(13:55 +0200)
src/charon/plugins/ha_sync/ha_sync_dispatcher.c
patch
|
blob
|
history
diff --git
a/src/charon/plugins/ha_sync/ha_sync_dispatcher.c
b/src/charon/plugins/ha_sync/ha_sync_dispatcher.c
index
afb024a
..
84f311c
100644
(file)
--- 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,