From 9edc1dfa16d605227f77c553285ec13dcd0cbb70 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Sat, 31 Jan 1998 04:08:33 +0000 Subject: [PATCH] * 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 --- src/lib/gssapi/krb5/ChangeLog | 5 +++++ 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 + + * 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 * 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; } -- 2.26.2