From: Tobias Brunner Date: Fri, 24 Sep 2010 14:27:02 +0000 (+0200) Subject: Maemo: Initiate consumes a child_sa reference, so get an additional one. X-Git-Tag: 4.5.0~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fef86d1ed506d923d5588ffa6fe6bac31dc51b1;p=thirdparty%2Fstrongswan.git Maemo: Initiate consumes a child_sa reference, so get an additional one. --- diff --git a/src/libcharon/plugins/maemo/maemo_plugin.c b/src/libcharon/plugins/maemo/maemo_plugin.c index 042b7d4dcd..48f832ad2c 100644 --- a/src/libcharon/plugins/maemo/maemo_plugin.c +++ b/src/libcharon/plugins/maemo/maemo_plugin.c @@ -198,6 +198,8 @@ static gboolean initiate_connection(private_maemo_plugin_t *this, 0, "255.255.255.255", 65535); child_cfg->add_traffic_selector(child_cfg, FALSE, ts); peer_cfg->add_child_cfg(peer_cfg, child_cfg); + /* get an additional reference because initiate consumes one */ + child_cfg->get_ref(child_cfg); if (charon->controller->initiate(charon->controller, peer_cfg, child_cfg, controller_cb_empty, NULL) != SUCCESS)