SQ(?) nwrap: don't fail re-adding the same entry
[obnox/cwrap/nss_wrapper.git] / src / nss_wrapper.c
index 8dc166968bfaae6a42a434f46ee1cb4f573043d0..f48b9cc7e8d65d1f992a014d8dad80fc2ed833a8 100644 (file)
@@ -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;
                }
        }