* kadmin.c (kadmin_parse_name): Properly advance pointer in certain error cases
authorKen Raeburn <raeburn@mit.edu>
Wed, 10 Oct 2001 04:06:11 +0000 (04:06 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 10 Oct 2001 04:06:11 +0000 (04:06 +0000)
involving '@'.  Patch from Emily Ratliff, <ratliff@austin.ibm.com>.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13795 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/cli/ChangeLog
src/kadmin/cli/kadmin.c

index cbc4093c2fff34cbd95b109e87ac5c1c4497464e..33b0f2d80b404f079ef0edc944f47a760728132b 100644 (file)
@@ -1,3 +1,9 @@
+2001-10-10  Ken Raeburn  <raeburn@mit.edu>
+
+       * kadmin.c (kadmin_parse_name): Properly advance pointer in
+       certain error cases involving '@'.  Patch from Emily Ratliff,
+       <ratliff@austin.ibm.com>.
+
 2001-10-09  Ken Raeburn  <raeburn@mit.edu>
 
        * dump.c: Make prototypes unconditional.
index 0c223e04eb3d1a1ebfdd4ef02d37a48f4c139498..b3308797a7edbb476b84708c0625b65247183f01 100644 (file)
@@ -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, "@");