(add_to_transited): Change the current logic to keep all array references
authorKen Raeburn <raeburn@mit.edu>
Thu, 12 Oct 2006 00:33:12 +0000 (00:33 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 12 Oct 2006 00:33:12 +0000 (00:33 +0000)
commitbb75ff893cd5ac8c4e0cc72ab998dd90d56153d6
tree9b3cf8ffb4df213872e8fc9f4c8befb30f273d09
parent25ca5f6f09ef398effe4300f754d783664c4988d
(add_to_transited): Change the current logic to keep all array references
in bounds, assuming that what would've been next[-1] would not be '.'.  I
haven't fully reexamined the logic, but this seems consistent with the
actual current behavior, and the existing test cases.

Also, factored out code for copying a string from a krb5_data to a char*.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18688 dc483132-0cff-0310-8789-dd5450dbe970
src/kdc/kdc_util.c