svn rev #21669: branches/mskrb-integ/src/kdc/

lhoward@MIT.EDU lhoward at MIT.EDU
Fri Jan 2 16:50:55 EST 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=21669
Commit By: lhoward
Log Message:
Validate k_nprincs != 0 before passing a pointer to krbtgt



Changed Files:
U   branches/mskrb-integ/src/kdc/do_tgs_req.c
Modified: branches/mskrb-integ/src/kdc/do_tgs_req.c
===================================================================
--- branches/mskrb-integ/src/kdc/do_tgs_req.c	2009-01-02 20:35:22 UTC (rev 21668)
+++ branches/mskrb-integ/src/kdc/do_tgs_req.c	2009-01-02 21:50:54 UTC (rev 21669)
@@ -628,7 +628,7 @@
 			      c_flags,
 			      (c_nprincs != 0) ? &client : NULL,
 			      &server,
-			      &krbtgt,
+			      k_nprincs ? &krbtgt : NULL,
 			      subkey != NULL ? subkey :
 				header_ticket->enc_part2->session,
 			      &encrypting_key, /* U2U or server key */
@@ -697,7 +697,7 @@
     }
     if (isflagset(c_flags, KRB5_KDB_FLAG_CROSS_REALM)) {
 	errcode = validate_transit_path(kdc_context, header_enc_tkt->client,
-					&server, &krbtgt);
+					&server, k_nprincs ? &krbtgt : NULL);
 	if (errcode) {
 	    status = "NON_TRANSITIVE";
 	    goto cleanup;




More information about the cvs-krb5 mailing list