diff options
Diffstat (limited to 'src/lib/gssapi')
| -rw-r--r-- | src/lib/gssapi/mechglue/g_glue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/gssapi/mechglue/g_glue.c b/src/lib/gssapi/mechglue/g_glue.c index 1dcd14795..90febd5b9 100644 --- a/src/lib/gssapi/mechglue/g_glue.c +++ b/src/lib/gssapi/mechglue/g_glue.c @@ -367,7 +367,8 @@ gss_name_t *internal_name; * 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, |
