diff options
author | Tobias Brunner <tobias@strongswan.org> | 2010-09-24 16:27:02 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2010-10-14 17:36:19 +0200 |
commit | 4fef86d1ed506d923d5588ffa6fe6bac31dc51b1 (patch) | |
tree | 20f95817251530bf056bcccf2dfdaaad8001653c /src/libcharon/plugins/maemo/maemo_plugin.c | |
parent | 28c51809a7e34d2af70e508c86aa17ff350c06e3 (diff) | |
download | strongswan-4fef86d1ed506d923d5588ffa6fe6bac31dc51b1.tar.bz2 strongswan-4fef86d1ed506d923d5588ffa6fe6bac31dc51b1.tar.xz |
Maemo: Initiate consumes a child_sa reference, so get an additional one.
Diffstat (limited to 'src/libcharon/plugins/maemo/maemo_plugin.c')
-rw-r--r-- | src/libcharon/plugins/maemo/maemo_plugin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcharon/plugins/maemo/maemo_plugin.c b/src/libcharon/plugins/maemo/maemo_plugin.c index 042b7d4dc..48f832ad2 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) |