ike-config: Do not assign attributes for redirected IKE_SAs
authorTobias Brunner <tobias@strongswan.org>
Tue, 28 Apr 2015 16:15:35 +0000 (18:15 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 4 Mar 2016 15:02:59 +0000 (16:02 +0100)
src/libcharon/sa/ikev2/tasks/ike_config.c

index 646f20c..6c42b81 100644 (file)
@@ -333,6 +333,11 @@ METHOD(task_t, build_r, status_t,
                linked_list_t *vips, *pools;
                host_t *requested;
 
+               if (this->ike_sa->has_condition(this->ike_sa, COND_REDIRECTED))
+               {       /* don't assign attributes for redirected SAs */
+                       return SUCCESS;
+               }
+
                id = this->ike_sa->get_other_eap_id(this->ike_sa);
                config = this->ike_sa->get_peer_cfg(this->ike_sa);
                vips = linked_list_create();