Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
ENTRY e;
ENTRY *p;
- /* Maybe it's little bit late ... */
assert(ed != NULL);
assert(h_name_a != NULL);
p = hsearch(e, FIND);
if (p == NULL) {
NWRAP_LOG(NWRAP_LOG_DEBUG, "Name %s not found. Adding...", h_name_a);
- /* Just add alias and don't mess with metadata */
nwrap_add_hname_add_new(h_name_a, ed);
} else {
- /* Element found. Add them to end of list */
struct nwrap_entdata *ed_dst = (struct nwrap_entdata *)p->data;
assert(p->data != NULL);