summaryrefslogtreecommitdiff
path: root/lib/ldb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-07-30 21:53:15 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-07-30 15:48:53 +0200
commitcddcaf7bd2c272bc578ac1e4f7ec438ab94fc243 (patch)
tree6e95108849c46dc66fb7f2a606ee455e0f0201b4 /lib/ldb
parent0e1814c6f68ab36ea0a525a1c71e6e2db91bd0e6 (diff)
downloadsamba-cddcaf7bd2c272bc578ac1e4f7ec438ab94fc243.tar.gz
samba-cddcaf7bd2c272bc578ac1e4f7ec438ab94fc243.tar.bz2
samba-cddcaf7bd2c272bc578ac1e4f7ec438ab94fc243.zip
ldb: Add parameter to avoid NULL format string flagged by -Werror=format
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Jul 30 15:48:53 CEST 2012 on sn-devel-104
Diffstat (limited to 'lib/ldb')
-rw-r--r--lib/ldb/ldb_map/ldb_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldb/ldb_map/ldb_map.c b/lib/ldb/ldb_map/ldb_map.c
index d35e5c604f..af3d799fc6 100644
--- a/lib/ldb/ldb_map/ldb_map.c
+++ b/lib/ldb/ldb_map/ldb_map.c
@@ -1015,7 +1015,7 @@ static int map_init_dns(struct ldb_module *module, struct ldb_map_context *data,
return LDB_ERR_OPERATIONS_ERROR;
}
- ret = ldb_search(ldb, data, &res, dn, LDB_SCOPE_BASE, attrs, NULL);
+ ret = ldb_search(ldb, data, &res, dn, LDB_SCOPE_BASE, attrs, "(|(objectClass=*)(dn=*))");
talloc_free(dn);
if (ret != LDB_SUCCESS) {
return ret;