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);
}
free(user_addrlist.items);
+#ifdef HAVE_GETHOSTBYNAME2
free(user_addrlist2.items);
+#endif
hdestroy();
NWRAP_UNLOCK_ALL;