spnego: Also use mechglue names

This commit is contained in:
Nicolas Williams
2020-04-24 19:04:50 -05:00
parent 511b5e4e97
commit 1a8855e6c4
14 changed files with 114 additions and 118 deletions

View File

@@ -74,7 +74,7 @@ _gss_find_mn(OM_uint32 *minor_status,
return GSS_S_BAD_NAME;
m = __gss_get_mechanism(mech);
if (!m)
if (!m || !m->gm_import_name)
return (GSS_S_BAD_MECH);
mn = malloc(sizeof(struct _gss_mechanism_name));