From: Tobias Brunner Date: Mon, 10 Mar 2014 13:31:42 +0000 (+0100) Subject: tnc-ifmap: Get a reference to the client cert as it is also used in an auth config X-Git-Tag: 5.1.3dr1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67dc5d393cb7022751704db55249f1eb9385495a;p=thirdparty%2Fstrongswan.git tnc-ifmap: Get a reference to the client cert as it is also used in an auth config --- diff --git a/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c b/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c index 8f24daea31..5206ba4e75 100644 --- a/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c +++ b/src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap.c @@ -779,7 +779,7 @@ static bool soap_init(private_tnc_ifmap_soap_t *this) return FALSE; } DBG1(DBG_TNC, "loaded MAP client certificate from '%s'", client_cert); - this->creds->add_cert(this->creds, TRUE, cert); + cert = this->creds->add_cert_ref(this->creds, TRUE, cert); /* load MAP client private key */ if (client_key)