From: Ken Raeburn Date: Wed, 10 Oct 2001 04:06:11 +0000 (+0000) Subject: * kadmin.c (kadmin_parse_name): Properly advance pointer in certain error cases X-Git-Tag: krb5-1.3-alpha1~1048 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0dc90562f2805c903ff421c25d286899254ca87c;p=krb5.git * 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 --- 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, "@");