* init_sec_context.c (krb5_gss_init_sec_context): Actually
authorTom Yu <tlyu@mit.edu>
Sat, 31 Jan 1998 04:08:33 +0000 (04:08 +0000)
committerTom Yu <tlyu@mit.edu>
Sat, 31 Jan 1998 04:08:33 +0000 (04:08 +0000)
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
src/lib/gssapi/krb5/init_sec_context.c

index 3088ee7f876c9498ac39a7faceddc36962b5f6e2..f242894f43047f57ee0d879688f8c3c8dc013a49 100644 (file)
@@ -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
index 69192e919b2bc2273e09fa5855acbb06037da912..ee2852dffe80ecc585f4c47abebc61de9410e27a 100644 (file)
@@ -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;
       }