mirror of
https://github.com/samba-team/samba.git
synced 2025-02-01 05:47:28 +03:00
r11594: ensure ldb_search() sets *res to NULL on failure (some of the updated
ldb_result code coud rely on that) (This used to be commit cd567bcb24125827c746c1c0902631b0e7c2cea5)
This commit is contained in:
parent
7659107738
commit
f613e18d1e
@ -235,6 +235,8 @@ int ldb_search(struct ldb_context *ldb,
|
||||
struct ldb_parse_tree *tree;
|
||||
int ret;
|
||||
|
||||
(*res) = NULL;
|
||||
|
||||
request = talloc(ldb, struct ldb_request);
|
||||
if (request == NULL) {
|
||||
ldb_set_errstring(ldb->modules, talloc_strdup(ldb, "Not Enough memory"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user