diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-08-27 00:31:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:02:45 -0500 |
commit | 538e9842f6d2ee46ede3c5d25d2b69c17adffd3b (patch) | |
tree | 733934dd66503e63ec2dc30fdb092ce6c1906484 | |
parent | 7e4148eb4fc46d121ab76a0b6236e636e1fdab74 (diff) | |
download | samba-538e9842f6d2ee46ede3c5d25d2b69c17adffd3b.tar.gz samba-538e9842f6d2ee46ede3c5d25d2b69c17adffd3b.tar.bz2 samba-538e9842f6d2ee46ede3c5d25d2b69c17adffd3b.zip |
r24690: Further fix to bug 4919: Ensure we don't supply a NULL URL argument to
ldb_connect_backend().
Andrew Bartlett
(This used to be commit d0595e7a3d15c40dd49062efa0ddc6864b6b9030)
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/partition.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/partition.c b/source4/dsdb/samdb/ldb_modules/partition.c index 4c0c632139..ae739f9b00 100644 --- a/source4/dsdb/samdb/ldb_modules/partition.c +++ b/source4/dsdb/samdb/ldb_modules/partition.c @@ -821,6 +821,11 @@ static int partition_init(struct ldb_module *module) data->partitions[i]->backend = relative_path(module, data->partitions[i], p); + if (!data->partitions[i]->backend) { + ldb_asprintf_errstring(module->ldb, + "partition_init: unable to determine an relative path for partition: %s", base); + talloc_free(mem_ctx); + } ret = ldb_connect_backend(module->ldb, data->partitions[i]->backend, NULL, &data->partitions[i]->module); if (ret != LDB_SUCCESS) { talloc_free(mem_ctx); |