svn rev #23918: trunk/src/lib/gssapi/krb5/

ghudson@MIT.EDU ghudson at MIT.EDU
Wed Apr 21 19:23:09 EDT 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=23918
Commit By: ghudson
Log Message:
Amend r23917 to correct some uses of *out_creds which should now use
the local variable.



Changed Files:
U   trunk/src/lib/gssapi/krb5/init_sec_context.c
Modified: trunk/src/lib/gssapi/krb5/init_sec_context.c
===================================================================
--- trunk/src/lib/gssapi/krb5/init_sec_context.c	2010-04-21 23:20:29 UTC (rev 23917)
+++ trunk/src/lib/gssapi/krb5/init_sec_context.c	2010-04-21 23:23:09 UTC (rev 23918)
@@ -204,7 +204,7 @@
 
     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 @@
      * 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;
     }




More information about the cvs-krb5 mailing list