diff options
author | Greg Hudson <ghudson@mit.edu> | 2010-04-21 23:23:09 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2010-04-21 23:23:09 +0000 |
commit | a45a146036a5faf133b261dec437523cf644525f (patch) | |
tree | 43dd875a3226229a4c27ae067043908947ba1078 /src | |
parent | 736c9f81b080c02c657bc9ca5e63c37d96d4b9bb (diff) | |
download | krb5-a45a146036a5faf133b261dec437523cf644525f.zip krb5-a45a146036a5faf133b261dec437523cf644525f.tar.gz krb5-a45a146036a5faf133b261dec437523cf644525f.tar.bz2 |
Amend r23917 to correct some uses of *out_creds which should now use
the local variable.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23918 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/gssapi/krb5/init_sec_context.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/gssapi/krb5/init_sec_context.c b/src/lib/gssapi/krb5/init_sec_context.c index fd29c45..82baca1 100644 --- a/src/lib/gssapi/krb5/init_sec_context.c +++ b/src/lib/gssapi/krb5/init_sec_context.c @@ -204,7 +204,7 @@ static krb5_error_code get_credentials(context, cred, server, now, if (flags & KRB5_GC_CONSTRAINED_DELEGATION) { if (!krb5_principal_compare(context, cred->name->princ, - (*out_creds)->client)) { + result_creds->client)) { /* server did not support constrained delegation */ code = KRB5_KDCREP_MODIFIED; goto cleanup; @@ -216,8 +216,7 @@ static krb5_error_code get_credentials(context, cred, server, now, * boundaries) because accept_sec_context code is also similarly * non-forgiving. */ - if (!krb5_gss_dbg_client_expcreds && *out_creds != NULL && - (*out_creds)->times.endtime < now) { + if (!krb5_gss_dbg_client_expcreds && result_creds->times.endtime < now) { code = KRB5KRB_AP_ERR_TKT_EXPIRED; goto cleanup; } |