From 83c37b91831b80e00f281b9f9f9277e0c7d82651 Mon Sep 17 00:00:00 2001 From: vzykov Date: Mon, 14 Jan 2008 14:10:19 +0000 Subject: ChangeLogTag: Mon Jan 14 14:02:44 UTC 2008 Vladimir Zykov --- TAO/ChangeLog | 7 +++++++ TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/TAO/ChangeLog b/TAO/ChangeLog index dd314bea9dc..63813940b32 100644 --- a/TAO/ChangeLog +++ b/TAO/ChangeLog @@ -1,3 +1,10 @@ +Mon Jan 14 14:02:44 UTC 2008 Vladimir Zykov + + * orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp: + Changed a bit a fix for bug 3165. It happens that ASN1_INTEGER_to_BN + unconditionally allocates BIGNUM and thus that BIGNUM has to be + freed unconditionally too. + Mon Jan 14 01:04:17 UTC 2008 William R. Otte * TAO_IDL/TAO_IDL.mwc: diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp index c4763bb1a25..1b6a4d0ede2 100644 --- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp +++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Credentials.cpp @@ -37,8 +37,6 @@ TAO::SSLIOP_Credentials::SSLIOP_Credentials (::X509 *cert, ::EVP_PKEY *evp) { char * id = BN_bn2hex (bn); - BN_free(bn); - ACE_CString s = ACE_CString ("X509: ") + ACE_CString (const_cast (id)); @@ -53,6 +51,7 @@ TAO::SSLIOP_Credentials::SSLIOP_Credentials (::X509 *cert, ::EVP_PKEY *evp) CRYPTO_free (id); #endif /* OPENSSL_free */ } + BN_free (bn); // ------------------------------------------- -- cgit v1.2.1