If we're going to fake up a name, we have to initialize its lock. It
might be better to use kg_init_name(), but we don't have a context on
hand.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25030
dc483132-0cff-0310-8789-
dd5450dbe970
struct acquire_cred_args args;
krb5_gss_name_rec name;
OM_uint32 time_rec;
+ krb5_error_code code;
assert(value->length == sizeof(*req));
if (req->keytab_principal) {
memset(&name, 0, sizeof(name));
+ code = k5_mutex_init(&name.lock);
+ if (code != 0) {
+ *minor_status = code;
+ return GSS_S_FAILURE;
+ }
name.princ = req->keytab_principal;
args.desired_name = (gss_name_t)&name;
}