From ee6a66048d74f66ed9d4a01f6a9190e62f8eb5ce Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 2 Jun 2001 01:10:58 +0000 Subject: [PATCH] * 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 --- src/lib/krb5/krb/ChangeLog | 6 ++++++ src/lib/krb5/krb/init_ctx.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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; -- 2.26.2