summaryrefslogtreecommitdiff
path: root/source4/passdb
diff options
context:
space:
mode:
Diffstat (limited to 'source4/passdb')
-rw-r--r--source4/passdb/pdb_interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/passdb/pdb_interface.c b/source4/passdb/pdb_interface.c
index 6b25a1fdad..5b2c081275 100644
--- a/source4/passdb/pdb_interface.c
+++ b/source4/passdb/pdb_interface.c
@@ -385,7 +385,7 @@ static NTSTATUS make_pdb_context(struct pdb_context **context)
NTSTATUS make_pdb_context_list(struct pdb_context **context, const char **selected)
{
int i = 0;
- struct pdb_methods *curmethods, *tmpmethods;
+ struct pdb_methods *curmethods;
NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
if (!NT_STATUS_IS_OK(nt_status = make_pdb_context(context))) {
@@ -401,7 +401,7 @@ NTSTATUS make_pdb_context_list(struct pdb_context **context, const char **select
return nt_status;
}
curmethods->parent = *context;
- DLIST_ADD_END((*context)->pdb_methods, curmethods, tmpmethods);
+ DLIST_ADD_END((*context)->pdb_methods, curmethods, struct pdb_methods *);
i++;
}