From 5842aa1ffdedd192d2616a6593bc8d8464dde3cd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 4 Sep 2009 13:58:17 +1000 Subject: s4: fixed a missing NULL termination in a attribute list passed to ldb_search --- source4/dsdb/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit