summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2010-10-25 16:26:20 -0400
committerSimo Sorce <ssorce@redhat.com>2010-10-28 07:58:31 -0400
commit2d63522d48c02e8d6461907d1ed3fb41d8438967 (patch)
tree86da1d5563aac14e95593f61e252abc07a42934d
parent56724fa02409068e1ebbd129a8e920df5950b2b8 (diff)
downloadfreeipa-2d63522d48c02e8d6461907d1ed3fb41d8438967.tar.gz
freeipa-2d63522d48c02e8d6461907d1ed3fb41d8438967.tar.xz
freeipa-2d63522d48c02e8d6461907d1ed3fb41d8438967.zip
ipa-uuid: Reset generate flag at every cycle
Avoid false positives if more than one uuid attribute is generated in the same entry.
-rw-r--r--daemons/ipa-slapi-plugins/ipa-uuid/ipa_uuid.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-uuid/ipa_uuid.c b/daemons/ipa-slapi-plugins/ipa-uuid/ipa_uuid.c
index d122f7d67..d80562b72 100644
--- a/daemons/ipa-slapi-plugins/ipa-uuid/ipa_uuid.c
+++ b/daemons/ipa-slapi-plugins/ipa-uuid/ipa_uuid.c
@@ -781,7 +781,7 @@ static int ipauuid_pre_op(Slapi_PBlock *pb, int modtype)
LDAPMod **mods;
bool free_entry = false;
char *errstr = NULL;
- bool generate = false;
+ bool generate;
int ret = LDAP_SUCCESS;
LOG_TRACE("--in-->\n");
@@ -885,6 +885,8 @@ static int ipauuid_pre_op(Slapi_PBlock *pb, int modtype)
list = PR_NEXT_LINK(list)) {
cfgentry = (struct configEntry *) list;
+ generate = false;
+
/* Did we already service this attr? */
if (ipauuid_list_contains_attr(generated_attrs,
cfgentry->attr)) {