aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/ike_sa.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-01-20 13:54:39 +0100
committerMartin Willi <martin@revosec.ch>2012-03-20 17:31:38 +0100
commita994050e9ce0ab4b1c058d15096b6d657d3ca1c8 (patch)
tree9e8a365a48c5629e33dcbbc5aa04ebfe1fa2d08b /src/libcharon/sa/ike_sa.c
parentaa3b53e7165da9d03ccc23a0f0feeeeda6e76219 (diff)
downloadstrongswan-a994050e9ce0ab4b1c058d15096b6d657d3ca1c8.tar.bz2
strongswan-a994050e9ce0ab4b1c058d15096b6d657d3ca1c8.tar.xz
Don't re-resolve addresses during initiate if they have already been set
Diffstat (limited to 'src/libcharon/sa/ike_sa.c')
-rw-r--r--src/libcharon/sa/ike_sa.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libcharon/sa/ike_sa.c b/src/libcharon/sa/ike_sa.c
index 5a27de5e7..c5683e93b 100644
--- a/src/libcharon/sa/ike_sa.c
+++ b/src/libcharon/sa/ike_sa.c
@@ -1077,7 +1077,11 @@ METHOD(ike_sa_t, initiate, status_t,
{
if (this->state == IKE_CREATED)
{
- resolve_hosts(this);
+ if (this->my_host->is_anyaddr(this->my_host) ||
+ this->other_host->is_anyaddr(this->other_host))
+ {
+ resolve_hosts(this);
+ }
if (this->other_host->is_anyaddr(this->other_host)
#ifdef ME