From 0dc90562f2805c903ff421c25d286899254ca87c Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 10 Oct 2001 04:06:11 +0000 Subject: [PATCH] * kadmin.c (kadmin_parse_name): Properly advance pointer in certain error cases involving '@'. Patch from Emily Ratliff, . git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13795 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/cli/ChangeLog | 6 ++++++ src/kadmin/cli/kadmin.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/kadmin/cli/ChangeLog b/src/kadmin/cli/ChangeLog index cbc4093c2..33b0f2d80 100644 --- a/src/kadmin/cli/ChangeLog +++ b/src/kadmin/cli/ChangeLog @@ -1,3 +1,9 @@ +2001-10-10 Ken Raeburn + + * kadmin.c (kadmin_parse_name): Properly advance pointer in + certain error cases involving '@'. Patch from Emily Ratliff, + . + 2001-10-09 Ken Raeburn * dump.c: Make prototypes unconditional. diff --git a/src/kadmin/cli/kadmin.c b/src/kadmin/cli/kadmin.c index 0c223e04e..b3308797a 100644 --- a/src/kadmin/cli/kadmin.c +++ b/src/kadmin/cli/kadmin.c @@ -158,7 +158,7 @@ kadmin_parse_name(name, principal) if (cp - fullname && *(cp - 1) != '\\') break; else - cp = strchr(cp, '@'); + cp = strchr(cp + 1, '@'); } if (cp == NULL) { strcat(fullname, "@"); -- 2.26.2