X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.orig;a=blobdiff_plain;f=duplicate_name.c;h=fc54f7d6c2a29664649c1be9b6602db123a0fbff;hp=b936655ee137dfe0c2ccbda959d5b776468a3f41;hb=81378d116795fa8a7a56dc8e00c3b2666126682d;hpb=899e578a598e3be50fdf3e7cc1ef033e60d4067a diff --git a/duplicate_name.c b/duplicate_name.c index b936655..fc54f7d 100644 --- a/duplicate_name.c +++ b/duplicate_name.c @@ -63,14 +63,8 @@ gss_duplicate_name(OM_uint32 *minor, goto cleanup; } - if (input_name->flags & NAME_FLAG_RADIUS_ATTRIBUTES) { - major = radiusDuplicateAttrContext(minor, input_name, name); - if (GSS_ERROR(major)) - goto cleanup; - } - - if (input_name->flags & NAME_FLAG_SAML_ATTRIBUTES) { - major = samlDuplicateAttrContext(minor, input_name, name); + if (input_name->attrCtx != NULL) { + major = gssEapDuplicateAttrContext(minor, input_name, name); if (GSS_ERROR(major)) goto cleanup; }