svn rev #22645: trunk/src/kadmin/testing/util/

tlyu@MIT.EDU tlyu at MIT.EDU
Fri Aug 28 16:29:24 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=22645
Commit By: tlyu
Log Message:
ticket: 6544

Remove bogus conditional from tcl_kadm5_randkey_principal(), which was
causing unparse_keyblocks() to get stack garbage as num_keys when
num_var was "null", thus overrunning the end of the array.


Changed Files:
U   trunk/src/kadmin/testing/util/tcl_kadm5.c
Modified: trunk/src/kadmin/testing/util/tcl_kadm5.c
===================================================================
--- trunk/src/kadmin/testing/util/tcl_kadm5.c	2009-08-28 17:23:20 UTC (rev 22644)
+++ trunk/src/kadmin/testing/util/tcl_kadm5.c	2009-08-28 20:29:24 UTC (rev 22645)
@@ -2033,7 +2033,7 @@
 
      ret = kadm5_randkey_principal(server_handle,
 				   princ, keyblock_var ? &keyblocks : 0,
-				   num_var ? &num_keys : 0);
+				   &num_keys);
 
      if (ret == KADM5_OK) {
 	  if (keyblock_var) {




More information about the cvs-krb5 mailing list