for the sake of static analyzers. (Also, since this is an internal
function, it can be called on a half-constructed MN; checking the type
alone would be insufficient.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24884
dc483132-0cff-0310-8789-
dd5450dbe970
* If we are importing a name for the same mechanism, and the
* mechanism implements gss_duplicate_name, then use that.
*/
- if (union_name->mech_name != GSS_C_NO_NAME &&
+ if (union_name->mech_type != GSS_C_NO_OID &&
+ union_name->mech_name != GSS_C_NO_NAME &&
g_OID_equal(union_name->mech_type, mech_type) &&
mech->gss_duplicate_name != NULL) {
status = mech->gss_duplicate_name(minor_status,