diff options
author | Martin Willi <martin@revosec.ch> | 2012-01-18 17:24:08 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-03-20 17:31:36 +0100 |
commit | 3957a6e4f31eb893668caf7cad8b352a6e65e06f (patch) | |
tree | 8bcdd113df1bc53c349fc1214322d63dd64f4673 /src | |
parent | 696fa8e003f9e0a441f805ef2809b150fd47cc79 (diff) | |
download | strongswan-3957a6e4f31eb893668caf7cad8b352a6e65e06f.tar.bz2 strongswan-3957a6e4f31eb893668caf7cad8b352a6e65e06f.tar.xz |
Get a reference for the child_cfg passed to child_create_create()
Diffstat (limited to 'src')
-rw-r--r-- | src/libcharon/sa/ikev2/tasks/child_rekey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcharon/sa/ikev2/tasks/child_rekey.c b/src/libcharon/sa/ikev2/tasks/child_rekey.c index 28de072c0..17102b0d4 100644 --- a/src/libcharon/sa/ikev2/tasks/child_rekey.c +++ b/src/libcharon/sa/ikev2/tasks/child_rekey.c @@ -161,8 +161,8 @@ METHOD(task_t, build_i, status_t, /* ... our CHILD_CREATE task does the hard work for us. */ if (!this->child_create) { - this->child_create = child_create_create(this->ike_sa, config, TRUE, - NULL, NULL); + this->child_create = child_create_create(this->ike_sa, + config->get_ref(config), TRUE, NULL, NULL); } reqid = this->child_sa->get_reqid(this->child_sa); this->child_create->use_reqid(this->child_create, reqid); |