+2005-01-15 Jeffrey Altman <jaltman@mit.edu>
+
+ * rc_dfl.c: Move the extraction of the struct dfl_data
+ from the krb5_rcache after obtaining the lock, not before.
+
2004-08-03 Ken Raeburn <raeburn@mit.edu>
* rc-int.h (struct _krb5_rc_ops): Add new member,
krb5_error_code err;
struct dfl_data *t;
- t = (struct dfl_data *) id->data;
err = k5_mutex_lock(&id->lock);
if (err)
return err;
+ t = (struct dfl_data *) id->data;
*lifespan = t->lifespan;
k5_mutex_unlock(&id->lock);
return 0;
krb5_rc_dfl_recover_or_init(krb5_context context, krb5_rcache id,
krb5_deltat lifespan)
{
- struct dfl_data *t = (struct dfl_data *)id->data;
krb5_error_code retval;
retval = k5_mutex_lock(&id->lock);
krb5_rc_dfl_store(krb5_context context, krb5_rcache id, krb5_donot_replay *rep)
{
krb5_error_code ret;
- struct dfl_data *t = (struct dfl_data *)id->data;
+ struct dfl_data *t;
krb5_int32 now;
ret = krb5_timeofday(context, &now);
case 0: break;
default: /* wtf? */ ;
}
+ t = (struct dfl_data *)id->data;
#ifndef NOIOSTUFF
ret = krb5_rc_io_store(context, t, rep);
if (ret) {