summaryrefslogtreecommitdiff
path: root/source4/dsdb/common
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-04 13:58:17 +1000
committerAndrew Tridgell <tridge@samba.org>2009-09-04 14:40:51 +1000
commit5842aa1ffdedd192d2616a6593bc8d8464dde3cd (patch)
tree896aab1ff54866db2d54ba90cfb7d75a502ffe28 /source4/dsdb/common
parent27b19eb9f61dec1c60d9c6abcf1fb2e12541f62a (diff)
downloadsamba-5842aa1ffdedd192d2616a6593bc8d8464dde3cd.tar.gz
samba-5842aa1ffdedd192d2616a6593bc8d8464dde3cd.tar.bz2
samba-5842aa1ffdedd192d2616a6593bc8d8464dde3cd.zip
s4: fixed a missing NULL termination in a attribute list passed to ldb_search
Diffstat (limited to 'source4/dsdb/common')
-rw-r--r--source4/dsdb/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index 0ffec8a7eb..5834282fbd 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -2128,7 +2128,7 @@ int dsdb_find_guid_by_dn(struct ldb_context *ldb,
{
int ret;
struct ldb_result *res;
- const char *attrs[] = { "objectGUID" };
+ const char *attrs[] = { "objectGUID", NULL };
TALLOC_CTX *tmp_ctx = talloc_new(ldb);
ret = ldb_search(ldb, tmp_ctx, &res, dn, LDB_SCOPE_BASE, attrs, NULL);