move _gss_DES3_get_mic_compat to after ->target is set

Patch from Roland Dowdeswell
This commit is contained in:
Love Hornquist Astrand
2011-04-12 08:05:29 -07:00
parent c178563bef
commit ec88b5d043

View File

@@ -422,11 +422,6 @@ init_auth
goto failure; goto failure;
} }
ret = _gss_DES3_get_mic_compat(minor_status, ctx, context);
if (ret)
goto failure;
/* /*
* This is hideous glue for (NFS) clients that wants to limit the * This is hideous glue for (NFS) clients that wants to limit the
* available enctypes to what it can support (encryption in * available enctypes to what it can support (encryption in
@@ -469,6 +464,10 @@ init_auth
ctx->lifetime = ctx->kcred->times.endtime; ctx->lifetime = ctx->kcred->times.endtime;
ret = _gss_DES3_get_mic_compat(minor_status, ctx, context);
if (ret)
goto failure;
ret = _gsskrb5_lifetime_left(minor_status, ret = _gsskrb5_lifetime_left(minor_status,
context, context,
ctx->lifetime, ctx->lifetime,