summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tools/ldbsearch.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-06-14 11:24:17 -0400
committerSimo Sorce <idra@samba.org>2008-06-14 11:59:19 -0400
commit929adc9efa5cf985f0585214d30d18521aa1a821 (patch)
tree2a0f3e4dedc1336fb29aa4f36f302f29c5439f55 /source4/lib/ldb/tools/ldbsearch.c
parent2aba4107915611b223daa8c27c52352f57b25bbc (diff)
downloadsamba-929adc9efa5cf985f0585214d30d18521aa1a821.tar.gz
samba-929adc9efa5cf985f0585214d30d18521aa1a821.tar.bz2
samba-929adc9efa5cf985f0585214d30d18521aa1a821.zip
Make up the right dependencies now that ldb depends on libevents
(This used to be commit 3b8eec7ca334528cad3cdcd5e3fc5ee555d8d0e0)
Diffstat (limited to 'source4/lib/ldb/tools/ldbsearch.c')
-rw-r--r--source4/lib/ldb/tools/ldbsearch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/lib/ldb/tools/ldbsearch.c b/source4/lib/ldb/tools/ldbsearch.c
index e25bd19965..b3d1f934a6 100644
--- a/source4/lib/ldb/tools/ldbsearch.c
+++ b/source4/lib/ldb/tools/ldbsearch.c
@@ -276,7 +276,10 @@ int main(int argc, const char **argv)
int ret = -1;
const char *expression = "(|(objectClass=*)(distinguishedName=*))";
- ldb = ldb_init(NULL);
+ ldb = ldb_init(NULL, NULL);
+ if (ldb == NULL) {
+ return -1;
+ }
options = ldb_cmdline_process(ldb, argc, argv, usage);