git.samba.org
/
kai
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ldb:tools - always check if ldb connection has been estabilished
[kai/samba.git]
/
source4
/
lib
/
ldb
/
tools
/
ldbedit.c
diff --git
a/source4/lib/ldb/tools/ldbedit.c
b/source4/lib/ldb/tools/ldbedit.c
index 09c59cf6cda37a710deb234da35183788e915dc2..a046b17d5d6cead8b6d94de701965f0f46ead9db 100644
(file)
--- a/
source4/lib/ldb/tools/ldbedit.c
+++ b/
source4/lib/ldb/tools/ldbedit.c
@@
-306,6
+306,9
@@
int main(int argc, const char **argv)
struct ldb_control **req_ctrls;
ldb = ldb_init(mem_ctx, NULL);
+ if (ldb == NULL) {
+ return LDB_ERR_OPERATIONS_ERROR;
+ }
options = ldb_cmdline_process(ldb, argc, argv, usage);