X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.git;a=blobdiff_plain;f=mech_eap%2Futil_reauth.c;h=cd85a539a555ca61599e88c6e38f748308419526;hp=50011caef0f2a7383c0775642d692b29560d5091;hb=HEAD;hpb=3d5083e8a273503d6d5233195d2ee7cb2e754e6d diff --git a/mech_eap/util_reauth.c b/mech_eap/util_reauth.c index 50011ca..cd85a53 100644 --- a/mech_eap/util_reauth.c +++ b/mech_eap/util_reauth.c @@ -214,6 +214,11 @@ gssEapMakeReauthCreds(OM_uint32 *minor, credBuf->length = 0; credBuf->value = NULL; + if (ctx->acceptorName == GSS_C_NO_NAME) { + *minor = GSSEAP_NO_ACCEPTOR_NAME; + return GSS_S_UNAVAILABLE; + } + GSSEAP_KRB_INIT(&krbContext); code = getAcceptorKey(krbContext, ctx, cred, &server, &acceptorKey); @@ -635,7 +640,7 @@ cleanup: #ifndef HAVE_HEIMDAL_VERSION static gss_buffer_desc radiusAvpKrbAttr = { - sizeof("urn:authdata-radius-avp") - 1, "urn:authdata-radius-avp" + sizeof("urn:authdata-aaa-radius") - 1, "urn:authdata-aaa-radius" }; #endif @@ -1092,7 +1097,7 @@ OM_uint32 gssReleaseName(OM_uint32 *minor, gss_name_t *name) { - if (gssReleaseName == NULL) { + if (gssReleaseNameNext == NULL) { *minor = GSSEAP_NO_MECHGLUE_SYMBOL; return GSS_S_UNAVAILABLE; }