mirror of
https://github.com/samba-team/samba.git
synced 2025-08-07 09:49:30 +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 cd567bcb24
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
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"));
|
||||
|
Reference in New Issue
Block a user