X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.git;a=blobdiff_plain;f=util_context.c;h=ae3712a449f577fe5846c5f2f100f9d7393e26b5;hp=16a361fe3a2719bdf5f73d7e1cd5ba5535d27f37;hb=15c93f06ee6ddefa7e7b095351f6e66698c7cc9e;hpb=0eeae080d3a011340dfaa586ed04d3a2aa0d50e1 diff --git a/util_context.c b/util_context.c index 16a361f..ae3712a 100644 --- a/util_context.c +++ b/util_context.c @@ -95,7 +95,7 @@ releaseAcceptorContext(struct gss_eap_acceptor_ctx *ctx) GSSEAP_FREE(ctx->radServer); gss_release_buffer(&tmpMinor, &ctx->state); if (ctx->vps != NULL) - pairfree(&ctx->vps); + gssEapRadiusFreeAvps(&tmpMinor, &ctx->vps); } OM_uint32 @@ -190,8 +190,10 @@ gssEapVerifyToken(OM_uint32 *minor, return major; if (ctx->mechanismUsed == GSS_C_NO_OID) { - if (!gssEapIsConcreteMechanismOid(oid)) + if (!gssEapIsConcreteMechanismOid(oid)) { + *minor = GSSEAP_WRONG_MECH; return GSS_S_BAD_MECH; + } if (!gssEapInternalizeOid(oid, &ctx->mechanismUsed)) { major = duplicateOid(minor, oid, &ctx->mechanismUsed);