X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot.git;a=blobdiff_plain;f=moonshot%2Fmech_eap%2Futil_cred.c;fp=moonshot%2Fmech_eap%2Futil_cred.c;h=53a19a74fe831938427cee906a546ab89526b99b;hp=8f8b99b3fb9aa71850bbc4848c47a182217caf8b;hb=1287abeea6c8c8148fbc41ef990b2381dc9564cd;hpb=80a471dd971ed45e99ba952fa6b841db961f1f00 diff --git a/moonshot/mech_eap/util_cred.c b/moonshot/mech_eap/util_cred.c index 8f8b99b..53a19a7 100644 --- a/moonshot/mech_eap/util_cred.c +++ b/moonshot/mech_eap/util_cred.c @@ -104,8 +104,8 @@ gssEapReleaseCred(OM_uint32 *minor, gss_cred_id_t *pCred) gss_release_buffer(&tmpMinor, &cred->caCertificate); gss_release_buffer(&tmpMinor, &cred->subjectNameConstraint); gss_release_buffer(&tmpMinor, &cred->subjectAltNameConstraint); - gss_release_buffer(&tmpMinor, &cred->clientCertificate); gss_release_buffer(&tmpMinor, &cred->privateKey); + gss_release_buffer(&tmpMinor, &cred->clientCertificate); #ifdef GSSEAP_ENABLE_REAUTH if (cred->krbCredCache != NULL) { @@ -693,8 +693,6 @@ gssEapDuplicateCred(OM_uint32 *minor, duplicateBufferOrCleanup(&src->subjectNameConstraint, &dst->subjectNameConstraint); if (src->subjectAltNameConstraint.value != NULL) duplicateBufferOrCleanup(&src->subjectAltNameConstraint, &dst->subjectAltNameConstraint); - if (src->clientCertificate.value != NULL) - duplicateBufferOrCleanup(&src->clientCertificate, &dst->clientCertificate); if (src->privateKey.value != NULL) duplicateBufferOrCleanup(&src->privateKey, &dst->privateKey);