aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-09-24 14:37:11 +0200
committerTobias Brunner <tobias@strongswan.org>2010-10-14 17:36:19 +0200
commitc2133533937aea4276ba9e0fa4c1f7635f06153a (patch)
treea98be7de14ea82c5b54e8fd2e2d02eabcee4007a /src
parent5232ebb1b46d7072bd8621590e8efec7ee9f8de7 (diff)
downloadstrongswan-c2133533937aea4276ba9e0fa4c1f7635f06153a.tar.bz2
strongswan-c2133533937aea4276ba9e0fa4c1f7635f06153a.tar.xz
Maemo: Clear the credentials before each connection attempt.
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/plugins/maemo/maemo_plugin.c2
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 3ce15f6d3..ef5f6510d 100644
--- a/src/libcharon/plugins/maemo/maemo_plugin.c
+++ b/src/libcharon/plugins/maemo/maemo_plugin.c
@@ -125,6 +125,8 @@ static gboolean initiate_connection(private_maemo_plugin_t *this,
DBG1(DBG_CFG, "received initiate for connection '%s'", this->current);
+ this->creds->clear(this->creds);
+
cert = lib->creds->create(lib->creds, CRED_CERTIFICATE, CERT_X509,
BUILD_FROM_FILE, cacert, BUILD_END);
if (cert)