diff options
Diffstat (limited to 'source4/ldap_server')
-rw-r--r-- | source4/ldap_server/ldap_simple_ldb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/ldap_server/ldap_simple_ldb.c b/source4/ldap_server/ldap_simple_ldb.c index 481db6052d..b9ef085002 100644 --- a/source4/ldap_server/ldap_simple_ldb.c +++ b/source4/ldap_server/ldap_simple_ldb.c @@ -171,10 +171,10 @@ static NTSTATUS sldb_Search(struct ldapsrv_partition *partition, struct ldapsrv_ lreq.op.search.scope = scope; lreq.op.search.tree = r->tree; lreq.op.search.attrs = attrs; - lreq.op.search.res = &res; ret = ldb_request(samdb, &lreq); - talloc_steal(samdb, res); + + res = talloc_steal(samdb, lreq.op.search.res); if (ret == LDB_SUCCESS) { for (i = 0; i < res->count; i++) { |