diff options
author | Jim McDonough <jmcd@samba.org> | 2003-06-20 17:39:53 +0000 |
---|---|---|
committer | Jim McDonough <jmcd@samba.org> | 2003-06-20 17:39:53 +0000 |
commit | 187ef2eb2a4f13b46df788f2e6ed18da3d5d5523 (patch) | |
tree | 4852d3db6a20b238baf891abe77316812577452b /source3/passdb | |
parent | d1fafca6087b1be684d98a004965c3d790552180 (diff) | |
download | samba-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.c | 5 |
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])); |