1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s4: fixed a missing NULL termination in a attribute list passed to ldb_search

This commit is contained in:
Andrew Tridgell 2009-09-04 13:58:17 +10:00
parent 27b19eb9f6
commit 5842aa1ffd

View File

@ -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);