From 2d63522d48c02e8d6461907d1ed3fb41d8438967 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 25 Oct 2010 16:26:20 -0400 Subject: ipa-uuid: Reset generate flag at every cycle Avoid false positives if more than one uuid attribute is generated in the same entry. --- daemons/ipa-slapi-plugins/ipa-uuid/ipa_uuid.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) { -- cgit