On error, krb5_build_principal_ext walks off the beginning of the array by using i-- in a conditional when it should be using --i (so that it actually compares the value of i that will be used below). Commit By: lxs Revision: 20920 Changed Files: U trunk/src/lib/krb5/krb/bld_pr_ext.c