chk_trans.c (krb5_check_transited_list): Fix use of an uninitalized
authorTheodore Tso <tytso@mit.edu>
Wed, 1 Jul 1998 22:01:29 +0000 (22:01 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 1 Jul 1998 22:01:29 +0000 (22:01 +0000)
variable; apparently the code was depending on the stack garbage being
non-zero(!)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10607 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/chk_trans.c

index b8467de3ee7977c3a9fa70e520b2bdc4c7daed39..ae9c5e30082efac819df38eb02c6f8c19229bf73 100644 (file)
@@ -1,3 +1,9 @@
+Wed Jul  1 17:59:26 1998  Theodore Y. Ts'o  <tytso@mit.edu>
+
+       * chk_trans.c (krb5_check_transited_list): Fix use of an
+               uninitialized variable; apparently the code was depending
+               on the stack garbage being non-zero(!)
+
 1998-05-26  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
        * srv_rcache.c (krb5_get_server_rcache): 
index 979eb831a507f3d0021b4f2c9ec334870c44cac0..ce994adfef973e789809b62f0a0d1f701c9e48da 100644 (file)
@@ -41,8 +41,7 @@ krb5_data      *realm2;
   krb5_principal  *tgs_list;
 
   if (!trans || !trans->data)  return(0);
-  if (trans_length)
-    trans_length = trans->data[trans->length-1] ?
+  trans_length = trans->data[trans->length-1] ?
       trans->length : trans->length - 1;
 
   for (i = 0; i < trans_length; i++)