aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/control/stroke_interface.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2007-04-11 07:20:39 +0000
committerMartin Willi <martin@strongswan.org>2007-04-11 07:20:39 +0000
commit3b138b84222abd682d249cccbe2a69b4b12ff4c7 (patch)
tree20ad2b820f90929a1989095e7f943008ac347e0c /src/charon/control/stroke_interface.c
parent2ed8cee162a32c8e781472e7190e109866972cae (diff)
downloadstrongswan-3b138b84222abd682d249cccbe2a69b4b12ff4c7.tar.bz2
strongswan-3b138b84222abd682d249cccbe2a69b4b12ff4c7.tar.xz
cleaned up apidoc
added some comments removed configuration.[ch], as it does not make sense like it is
Diffstat (limited to 'src/charon/control/stroke_interface.c')
-rwxr-xr-xsrc/charon/control/stroke_interface.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/charon/control/stroke_interface.c b/src/charon/control/stroke_interface.c
index 51e6c6dc1..8d9c94eb9 100755
--- a/src/charon/control/stroke_interface.c
+++ b/src/charon/control/stroke_interface.c
@@ -327,7 +327,10 @@ static void stroke_add_conn(private_stroke_interface_t *this,
{
my_vip = host_create_from_string(msg->add_conn.me.sourceip, 0);
}
- other_vip = host_create_from_string(msg->add_conn.other.sourceip, 0);
+ if (msg->add_conn.other.virtual_ip)
+ {
+ other_vip = host_create_from_string(msg->add_conn.other.sourceip, 0);
+ }
if (msg->add_conn.me.tohost)
{
@@ -448,6 +451,8 @@ static void stroke_add_conn(private_stroke_interface_t *this,
if (use_existing)
{
+ DESTROY_IF(my_vip);
+ DESTROY_IF(other_vip);
my_host->destroy(my_host);
my_id->destroy(my_id);
my_ca->destroy(my_ca);