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:
parent
9b7902090d
commit
19b2dcbeb2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user