fixed reauthentication when connections other is %any
authorMartin Willi <martin@strongswan.org>
Wed, 28 Feb 2007 14:17:31 +0000 (14:17 -0000)
committerMartin Willi <martin@strongswan.org>
Wed, 28 Feb 2007 14:17:31 +0000 (14:17 -0000)
src/charon/sa/ike_sa.c

index 91ee4be..aac786c 100644 (file)
@@ -1470,6 +1470,8 @@ static void reestablish(private_ike_sa_t *this)
        other_id->destroy(other_id);
        
        apply_config(other, this->connection, this->policy);
+       other->other_host->destroy(other->other_host);
+       other->other_host = this->other_host->clone(this->other_host);
                
        if (this->state == IKE_ESTABLISHED)
        {