1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

nwrap: Don't fail if we want to add an existing entry

Pair-Programmed-With: Michael Adam <obnox@samba.org>
Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Andreas Schneider 2015-11-24 17:32:47 +01:00 committed by Michael Adam
parent 9b7902090d
commit 19b2dcbeb2

View File

@ -2622,12 +2622,14 @@ static bool nwrap_ed_inventarize_add_to_existing(struct nwrap_entdata *const ed,
for (cursor = el; cursor->next != NULL; cursor = cursor->next)
{
if (cursor->ed == ed) {
return false;
/* The entry already exists in this list. */
return true;
}
}
if (cursor->ed == ed) {
return false;
/* The entry already exists in this list. */
return true;
}
el_new = nwrap_entlist_init(ed);