git.samba.org
/
obnox
/
cwrap
/
nss_wrapper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
SQ(?) nwrap: don't fail re-adding the same entry
[obnox/cwrap/nss_wrapper.git]
/
src
/
nss_wrapper.c
diff --git
a/src/nss_wrapper.c
b/src/nss_wrapper.c
index 8dc166968bfaae6a42a434f46ee1cb4f573043d0..f48b9cc7e8d65d1f992a014d8dad80fc2ed833a8 100644
(file)
--- a/
src/nss_wrapper.c
+++ b/
src/nss_wrapper.c
@@
-2622,7
+2622,8
@@
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;
}
}