trans->length == 0.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10622
dc483132-0cff-0310-8789-
dd5450dbe970
+Tue Jul 7 16:59:03 1998 Tom Yu <tlyu@mit.edu>
+
+ * chk_trans.c: Fix up previous fix; short-circuit out when
+ trans->length == 0.
+
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
krb5_error_code retval = 0;
krb5_principal *tgs_list;
- if (!trans || !trans->data) return(0);
+ if (trans == NULL || trans->data == NULL || trans->length == 0)
+ return(0);
trans_length = trans->data[trans->length-1] ?
- trans->length : trans->length - 1;
+ trans->length : trans->length - 1;
for (i = 0; i < trans_length; i++)
if (trans->data[i] == '\0') {