gm_mech_oid must be set

mechanism credentials created by dynamically loaded mechanisms do not work
because the gm_mech_oid field is unset for such mechanisms (instead, only
gm_mech.gm_mech_oid is).
This commit is contained in:
Luke Howard
2014-01-04 15:58:10 +11:00
parent 22c7f07ed8
commit 4ff005a6a4

View File

@@ -315,6 +315,7 @@ _gss_load_mech(void)
goto bad;
m->gm_so = so;
m->gm_mech_oid = mech_oid;
m->gm_mech.gm_mech_oid = mech_oid;
m->gm_mech.gm_flags = 0;
m->gm_mech.gm_compat = calloc(1, sizeof(struct gss_mech_compat_desc_struct));