summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tools/ldbrename.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/ldb/tools/ldbrename.c')
-rw-r--r--source4/lib/ldb/tools/ldbrename.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/ldb/tools/ldbrename.c b/source4/lib/ldb/tools/ldbrename.c
index e4087f42b8..518358c9a3 100644
--- a/source4/lib/ldb/tools/ldbrename.c
+++ b/source4/lib/ldb/tools/ldbrename.c
@@ -54,6 +54,9 @@ int main(int argc, const char **argv)
TALLOC_CTX *mem_ctx = talloc_new(NULL);
ldb = ldb_init(mem_ctx, NULL);
+ if (ldb == NULL) {
+ return LDB_ERR_OPERATIONS_ERROR;
+ }
options = ldb_cmdline_process(ldb, argc, argv, usage);