From: Martin Willi Date: Wed, 18 Jan 2012 16:24:08 +0000 (+0100) Subject: Get a reference for the child_cfg passed to child_create_create() X-Git-Tag: 5.0.0~338^2~9^2~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3957a6e4f31eb893668caf7cad8b352a6e65e06f;p=thirdparty%2Fstrongswan.git Get a reference for the child_cfg passed to child_create_create() --- diff --git a/src/libcharon/sa/ikev2/tasks/child_rekey.c b/src/libcharon/sa/ikev2/tasks/child_rekey.c index 28de072c08..17102b0d4e 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);