Valgrind found that we were reading past the end of the
preferred padata string. p is manually updated within
the loop and there is no need for the increment. It was
causing the null terminator to be skipped over, rather
than properly terminating the loop.
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18735
dc483132-0cff-0310-8789-
dd5450dbe970
#endif
base = 0;
- for (p = preauth_types; *p != '\0'; p++) {
+ for (p = preauth_types; *p != '\0';) {
/* skip whitespace to find an entry */
p += strspn(p, ", ");
if (*p != '\0') {