aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/tasks/ike_reauth.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2011-11-17 16:26:52 +0100
committerTobias Brunner <tobias@strongswan.org>2012-03-20 17:30:43 +0100
commit0b611540ef1f9587ffb1ab85c111ba6c4132d053 (patch)
tree4d9912b25f2874256c6a507674b1cf18aa20ef74 /src/libcharon/sa/tasks/ike_reauth.c
parent0fc9acdd235de4636da626e967f67e80a207879b (diff)
downloadstrongswan-0b611540ef1f9587ffb1ab85c111ba6c4132d053.tar.bz2
strongswan-0b611540ef1f9587ffb1ab85c111ba6c4132d053.tar.xz
Store IKE version of an SA on ike_sa_t.
Diffstat (limited to 'src/libcharon/sa/tasks/ike_reauth.c')
-rw-r--r--src/libcharon/sa/tasks/ike_reauth.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libcharon/sa/tasks/ike_reauth.c b/src/libcharon/sa/tasks/ike_reauth.c
index 6cda0dd25..197849d88 100644
--- a/src/libcharon/sa/tasks/ike_reauth.c
+++ b/src/libcharon/sa/tasks/ike_reauth.c
@@ -54,6 +54,7 @@ METHOD(task_t, process_i, status_t,
ike_sa_t *new;
host_t *host;
enumerator_t *enumerator;
+ ike_version_t version;
child_sa_t *child_sa;
peer_cfg_t *peer_cfg;
@@ -74,7 +75,9 @@ METHOD(task_t, process_i, status_t,
return FAILED;
}
- new = charon->ike_sa_manager->checkout_new(charon->ike_sa_manager, TRUE);
+ version = this->ike_sa->get_version(this->ike_sa);
+ new = charon->ike_sa_manager->checkout_new(charon->ike_sa_manager, version,
+ TRUE);
new->set_peer_cfg(new, peer_cfg);
host = this->ike_sa->get_other_host(this->ike_sa);