ipa-uuid: Reset generate flag at every cycle

Avoid false positives if more than one uuid attribute is generated
in the same entry.
This commit is contained in:
Simo Sorce 2010-10-25 16:26:20 -04:00
parent 56724fa024
commit 2d63522d48

View File

@ -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)) {