summaryrefslogtreecommitdiff
path: root/ldb/examples
diff options
context:
space:
mode:
Diffstat (limited to 'ldb/examples')
-rw-r--r--ldb/examples/ldbreader.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ldb/examples/ldbreader.c b/ldb/examples/ldbreader.c
index 6e581145..e48b3d33 100644
--- a/ldb/examples/ldbreader.c
+++ b/ldb/examples/ldbreader.c
@@ -88,8 +88,9 @@ int main(int argc, const char **argv)
quite fine grained results with the LDAP search syntax, however it is a bit
confusing to start with. See RFC2254.
*/
- if (LDB_SUCCESS != ldb_search(ldb, NULL, LDB_SCOPE_DEFAULT,
- expression, NULL, &resultMsg) ) {
+ if (LDB_SUCCESS != ldb_search(ldb, ldb, &resultMsg,
+ NULL, LDB_SCOPE_DEFAULT, NULL,
+ "%s", expression)) {
printf("Problem in search\n");
exit(-1);
}