From: Ken Raeburn Date: Sat, 2 Jun 2001 01:10:58 +0000 (+0000) Subject: * init_ctx.c (get_profile_etype_list): Zero out multiple separator characters X-Git-Tag: krb5-1.3-alpha1~1496 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ee6a66048d74f66ed9d4a01f6a9190e62f8eb5ce;p=krb5.git * init_ctx.c (get_profile_etype_list): Zero out multiple separator characters between tokens, so the second can be recognized properly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13258 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index f30cd42d8..155f35a5f 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,9 @@ +2001-06-01 Ken Raeburn + + * init_ctx.c (get_profile_etype_list): Zero out multiple separator + characters between tokens, so the second can be recognized + properly. + 2001-04-04 Tom Yu * mk_safe.c (krb5_mk_safe): Only use safe_cksumtype from the diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c index 6eb1b97f1..6a68720a0 100644 --- a/src/lib/krb5/krb/init_ctx.c +++ b/src/lib/krb5/krb/init_ctx.c @@ -333,8 +333,8 @@ get_profile_etype_list(context, ktypes, profstr, ctx_count, ctx_list) ; if (*ep) { *ep++ = '\0'; - while (isspace(*ep)) - ep++; + while (isspace(*ep) || *ep == ',') + *ep++ = '\0'; } else ep = (char *) NULL;