summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-25 18:10:04 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-25 18:58:20 +0200
commitfd7943bc80f0e96b70d4f851ea4e3f8f7689bead (patch)
treeaf86c46aca05fd30393a896208ca8124f40d6407 /source4
parent8bc2b54c7237697d8fddcec9a02d742c81c83699 (diff)
downloadsamba-fd7943bc80f0e96b70d4f851ea4e3f8f7689bead.tar.gz
samba-fd7943bc80f0e96b70d4f851ea4e3f8f7689bead.tar.bz2
samba-fd7943bc80f0e96b70d4f851ea4e3f8f7689bead.zip
ldb:gendb_* calls: support a "NULL" resultset parameter
This is useful for "samdb_search_count" where only the amount of entries matters.
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/common/util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index 9b813d1b52..340d721c79 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -196,13 +196,12 @@ int samdb_search_count(struct ldb_context *sam_ldb,
const char *format, ...) _PRINTF_ATTRIBUTE(3,4)
{
va_list ap;
- struct ldb_message **res;
const char *attrs[] = { NULL };
int ret;
TALLOC_CTX *tmp_ctx = talloc_new(sam_ldb);
va_start(ap, format);
- ret = gendb_search_v(sam_ldb, tmp_ctx, basedn, &res, attrs, format, ap);
+ ret = gendb_search_v(sam_ldb, tmp_ctx, basedn, NULL, attrs, format, ap);
va_end(ap);
talloc_free(tmp_ctx);