diff options
author | Tom Yu <tlyu@mit.edu> | 1998-01-31 04:08:33 +0000 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 1998-01-31 04:08:33 +0000 |
commit | 9edc1dfa16d605227f77c553285ec13dcd0cbb70 (patch) | |
tree | 5421d004ba517d8fbd78aa58bf425d490f4e3a02 | |
parent | 5ebad60bb1db453d7521258b9d3953c2f56a0642 (diff) | |
download | krb5-9edc1dfa16d605227f77c553285ec13dcd0cbb70.tar.gz krb5-9edc1dfa16d605227f77c553285ec13dcd0cbb70.tar.xz krb5-9edc1dfa16d605227f77c553285ec13dcd0cbb70.zip |
* init_sec_context.c (krb5_gss_init_sec_context): Actually
initialize now before calling make_ap_req.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10396 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/gssapi/krb5/ChangeLog | 5 | ||||
-rw-r--r-- | src/lib/gssapi/krb5/init_sec_context.c | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index 3088ee7f8..f242894f4 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,3 +1,8 @@ +Fri Jan 30 23:07:40 1998 Tom Yu <tlyu@mit.edu> + + * init_sec_context.c (krb5_gss_init_sec_context): Actually + initialize now before calling make_ap_req. + Thu Jan 29 20:08:02 1998 Dan Winship <danw@mit.edu> * accept_sec_context.c (rd_and_store_for_creds): Don't mess with diff --git a/src/lib/gssapi/krb5/init_sec_context.c b/src/lib/gssapi/krb5/init_sec_context.c index 69192e919..ee2852dff 100644 --- a/src/lib/gssapi/krb5/init_sec_context.c +++ b/src/lib/gssapi/krb5/init_sec_context.c @@ -348,14 +348,14 @@ krb5_gss_init_sec_context(minor_status, claimant_cred_handle, ctx->big_endian = 0; /* all initiators do little-endian, as per spec */ ctx->seqstate = 0; + if ((code = krb5_timeofday(context, &now))) { + free(ctx); + *minor_status = code; + return(GSS_S_FAILURE); + } if (time_req == 0 || time_req == GSS_C_INDEFINITE) { ctx->endtime = 0; } else { - if ((code = krb5_timeofday(context, &now))) { - free(ctx); - *minor_status = code; - return(GSS_S_FAILURE); - } ctx->endtime = now + time_req; } |