summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-01-05 07:42:52 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-01-06 14:13:21 -0500
commit029e6f1727972ffe31f97c7738a98d0efecb3e15 (patch)
treee282aafed60350f1b97396a02551cbad067ca1f5 /src
parent58e75994a4c03057072c0ed54cefe0965a6a4057 (diff)
downloadsssd-029e6f1727972ffe31f97c7738a98d0efecb3e15.tar.gz
sssd-029e6f1727972ffe31f97c7738a98d0efecb3e15.tar.xz
sssd-029e6f1727972ffe31f97c7738a98d0efecb3e15.zip
IPA netgroups: Do not reuse loop iterator variable
Diffstat (limited to 'src')
-rw-r--r--src/providers/ipa/ipa_netgroups.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/providers/ipa/ipa_netgroups.c b/src/providers/ipa/ipa_netgroups.c
index 78bcee1b4..d61728f57 100644
--- a/src/providers/ipa/ipa_netgroups.c
+++ b/src/providers/ipa/ipa_netgroups.c
@@ -741,7 +741,7 @@ static int extract_members(TALLOC_CTX *mem_ctx,
const char **ret_array = NULL;
int process_count = 0;
int ret_count = 0;
- int ret, i;
+ int ret, i, pi;
key.type = HASH_KEY_STRING;
value.type = HASH_VALUE_PTR;
@@ -789,8 +789,8 @@ static int extract_members(TALLOC_CTX *mem_ctx,
ret_count++;
}
- for (i = 0; i < process_count; i++) {
- state->group = process[i];
+ for (pi = 0; pi < process_count; pi++) {
+ state->group = process[pi];
hash_iterate(lookup_table, extract_users, state);
if (state->entries_count > 0) {
ret_array = talloc_realloc(mem_ctx, ret_array, const char *,