]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Maemo: Clear the credentials before each connection attempt.
authorTobias Brunner <tobias@strongswan.org>
Fri, 24 Sep 2010 12:37:11 +0000 (14:37 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 14 Oct 2010 15:36:19 +0000 (17:36 +0200)
src/libcharon/plugins/maemo/maemo_plugin.c

index 3ce15f6d385b148b7eade42392ff7cdc5bb41dc5..ef5f6510d3af24543458e0804853bc2bf6b7834f 100644 (file)
@@ -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)