diff options
Diffstat (limited to 'source4/lib/ldb/common/ldb_modules.c')
-rw-r--r-- | source4/lib/ldb/common/ldb_modules.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index b382a91ec8..d07666a674 100644 --- a/source4/lib/ldb/common/ldb_modules.c +++ b/source4/lib/ldb/common/ldb_modules.c @@ -200,6 +200,9 @@ int ldb_module_connect_backend(struct ldb_context *ldb, /* Default to tdb */ backend = talloc_strdup(ldb, "tdb"); } + if (backend == NULL) { + return ldb_oom(ldb); + } be = ldb_find_backend(backend); |