summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2003-06-20 17:39:53 +0000
committerJim McDonough <jmcd@samba.org>2003-06-20 17:39:53 +0000
commit187ef2eb2a4f13b46df788f2e6ed18da3d5d5523 (patch)
tree4852d3db6a20b238baf891abe77316812577452b /source3/passdb
parentd1fafca6087b1be684d98a004965c3d790552180 (diff)
downloadsamba-187ef2eb2a4f13b46df788f2e6ed18da3d5d5523.tar.gz
samba-187ef2eb2a4f13b46df788f2e6ed18da3d5d5523.tar.bz2
samba-187ef2eb2a4f13b46df788f2e6ed18da3d5d5523.zip
Fix bug #136: "passdb backend = " caused smbd to segfault.
Instead, spit out an error message. (This used to be commit 22f083b227a6f03ae42b985e45e9c384982c6ed2)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_interface.c5
1 files changed, 5 insertions, 0 deletions
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]));