diff options
author | Martin Willi <martin@strongswan.org> | 2006-06-19 09:27:14 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-06-19 09:27:14 +0000 |
commit | b965b8456b0e1dc98fc455ede406c2df7c45d187 (patch) | |
tree | e6e829fb76af18a8716267b9e91173e2d3d0135b /src | |
parent | c65a4fff3f15b5a80e6a00296623e16733f339c3 (diff) | |
download | strongswan-b965b8456b0e1dc98fc455ede406c2df7c45d187.tar.bz2 strongswan-b965b8456b0e1dc98fc455ede406c2df7c45d187.tar.xz |
fixed SPI when acting as initiator of rekeying
Diffstat (limited to 'src')
-rw-r--r-- | src/charon/sa/ike_sa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charon/sa/ike_sa.c b/src/charon/sa/ike_sa.c index fad6989f1..0d270179f 100644 --- a/src/charon/sa/ike_sa.c +++ b/src/charon/sa/ike_sa.c @@ -917,7 +917,7 @@ static status_t delete_child_sa(private_ike_sa_t *this, u_int32_t reqid) } build_message(this, INFORMATIONAL, TRUE, &request); delete_payload = delete_payload_create(child_sa->get_protocol(child_sa)); - delete_payload->add_spi(delete_payload, child_sa->get_spi(child_sa, FALSE)); + delete_payload->add_spi(delete_payload, child_sa->get_spi(child_sa, TRUE)); request->add_payload(request, (payload_t*)delete_payload); send_request(this, request); @@ -1018,7 +1018,7 @@ static status_t rekey_child_sa(private_ike_sa_t *this, u_int32_t reqid) build_message(this, CREATE_CHILD_SA, TRUE, &request); notify = notify_payload_create_from_protocol_and_type( child_sa->get_protocol(child_sa), REKEY_SA); - notify->set_spi(notify, child_sa->get_spi(child_sa, FALSE)); + notify->set_spi(notify, child_sa->get_spi(child_sa, TRUE)); request->add_payload(request, (payload_t*)notify); proposals = this->policy->get_proposals(this->policy); |