From f317f8860d78754b1fba9b3930439a6c34db366c Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Thu, 12 May 2011 22:33:22 +0200 Subject: [PATCH] don't release mech OID on Heimdal --- moonshot/mech_eap/util_mech.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/moonshot/mech_eap/util_mech.c b/moonshot/mech_eap/util_mech.c index 131ac0b..958e43d 100644 --- a/moonshot/mech_eap/util_mech.c +++ b/moonshot/mech_eap/util_mech.c @@ -183,7 +183,7 @@ gssEapIndicateMechs(OM_uint32 *minor, gss_OID_set *mechs) { krb5_context krbContext; - OM_uint32 major, tmpMinor; + OM_uint32 major; krb5_enctype *etypes; int i; @@ -202,6 +202,9 @@ gssEapIndicateMechs(OM_uint32 *minor, for (i = 0; etypes[i] != ENCTYPE_NULL; i++) { gss_OID mechOid; +#ifndef HAVE_HEIMDAL_VERSION + OM_uint32 tmpMinor; +#endif /* XXX currently we aren't equipped to encode these enctypes */ if (etypes[i] < 0 || etypes[i] > 127) @@ -215,7 +218,9 @@ gssEapIndicateMechs(OM_uint32 *minor, if (GSS_ERROR(major)) break; +#ifndef HAVE_HEIMDAL_VERSION gss_release_oid(&tmpMinor, &mechOid); +#endif } GSSEAP_FREE(etypes); -- 2.1.4