NTSTATUS smb_register_idmap(int version, const char *name, struct idmap_methods *methods)
{
- struct idmap_function_entry *entry, *tmp;
+ struct idmap_function_entry *entry;
if ((version != SMB_IDMAP_INTERFACE_VERSION)) {
DEBUG(0, ("Failed to register idmap module.\n"
entry->name = smb_xstrdup(name);
entry->methods = methods;
- DLIST_ADD_END(backends, entry, tmp);
+ DLIST_ADD(backends, entry);
DEBUG(5, ("Successfully added idmap backend '%s'\n", name));
return NT_STATUS_OK;
}