]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
fixed NO_PROPOSAL_CHOSEN response on IKE_SA_INIT
authorMartin Willi <martin@strongswan.org>
Wed, 14 Nov 2007 09:41:08 +0000 (09:41 -0000)
committerMartin Willi <martin@strongswan.org>
Wed, 14 Nov 2007 09:41:08 +0000 (09:41 -0000)
src/charon/sa/ike_sa.c

index 72996cecf252207841060d7e398222fc70aa71a4..4cd049880a0091ea6e4b27d38f7c1da673a1b836 100644 (file)
@@ -859,6 +859,8 @@ static void send_notify_response(private_ike_sa_t *this, message_t *request,
                this->other_host = request->get_source(request);
                this->other_host = this->other_host->clone(this->other_host);
        }
+       response->set_source(response, this->my_host->clone(this->my_host));
+       response->set_destination(response, this->other_host->clone(this->other_host));
        if (generate_message(this, response, &packet) == SUCCESS)
        {
                charon->sender->send(charon->sender, packet);