that trailing separator characters (as in the DEFAULT_ETYPE_LIST)
don't cause another iteration, which was causing the following
loop to fall off the end of the string due to count being one too
great.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13532
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-06-29 Tom Yu <tlyu@mit.edu>
+
+ * init_ctx.c (get_profile_etype_list): Fix etype-counting loop so
+ that trailing separator characters (as in the DEFAULT_ETYPE_LIST)
+ don't cause another iteration, which was causing the following
+ loop to fall off the end of the string due to count being one too
+ great.
+
2001-06-28 Ezra Peisach <epeisach@mit.edu>
* chk_trans.c (foreach_realm): Cleanup loal variable set but never
count = 0;
sp = retval;
- while (sp) {
+ while (*sp) {
for (ep = sp; *ep && (*ep != ',') && !isspace((int) (*ep)); ep++)
;
if (*ep) {
*ep++ = '\0';
while (isspace((int) (*ep)) || *ep == ',')
*ep++ = '\0';
- } else
- ep = (char *) NULL;
-
+ }
count++;
sp = ep;
}