Fixed a bug in kim_identity_get_components string where it
authorAlexandra Ellwood <lxs@mit.edu>
Wed, 1 Oct 2008 22:33:32 +0000 (22:33 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Wed, 1 Oct 2008 22:33:32 +0000 (22:33 +0000)
would return the first component multiple times.

ticket: 6055

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

src/kim/lib/kim_identity.c

index 41bf4a74a6965115689078d3da32391cc08d6367..a7edc8c38faa0adb85105882210bca1f67d18748 100644 (file)
@@ -469,7 +469,7 @@ kim_error kim_identity_get_components_string (kim_identity  in_identity,
         kim_string new_components = NULL;
         kim_string component = NULL;
         
-        err = kim_identity_get_component_at_index (in_identity, 0, &component);
+        err = kim_identity_get_component_at_index (in_identity, i, &component);
         
         if (!err) {
             err = kim_string_create_from_format (&new_components, "%s/%s",