]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Get a reference for the child_cfg passed to child_create_create()
authorMartin Willi <martin@revosec.ch>
Wed, 18 Jan 2012 16:24:08 +0000 (17:24 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:36 +0000 (17:31 +0100)
src/libcharon/sa/ikev2/tasks/child_rekey.c

index 28de072c082c765881f56a3bfb60d41ab608669c..17102b0d4e5262ca691dd77165c4896d9e9e8673 100644 (file)
@@ -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);