From 187ef2eb2a4f13b46df788f2e6ed18da3d5d5523 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Fri, 20 Jun 2003 17:39:53 +0000 Subject: Fix bug #136: "passdb backend = " caused smbd to segfault. Instead, spit out an error message. (This used to be commit 22f083b227a6f03ae42b985e45e9c384982c6ed2) --- source3/passdb/pdb_interface.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/passdb/pdb_interface.c') diff --git a/source3/passdb/pdb_interface.c b/source3/passdb/pdb_interface.c index a78f07e829..478cf6c06b 100644 --- a/source3/passdb/pdb_interface.c +++ b/source3/passdb/pdb_interface.c @@ -521,6 +521,11 @@ NTSTATUS make_pdb_context_list(struct pdb_context **context, const char **select return nt_status; } + if (!selected) { + DEBUG(0, ("ERROR: empty passdb backend list!\n")); + return nt_status; + } + while (selected[i]){ /* Try to initialise pdb */ DEBUG(5,("Trying to load: %s\n", selected[i])); -- cgit