mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
r25958: Callers of gendb_search_dn() don't expect to get
LDB_ERR_NO_SUCH_OBJECT for base searches. Return 0 in this case. Andrew Bartlett (This used to be commit eb180f6a6af0caf185e0f9782173c232dab9c5fb)
This commit is contained in:
parent
3f7dcaceba
commit
f8bf16960e
@ -64,6 +64,9 @@ int gendb_search_v(struct ldb_context *ldb,
|
||||
ret = res->count;
|
||||
*msgs = res->msgs;
|
||||
talloc_free(res);
|
||||
} else if (scope == LDB_SCOPE_BASE && ret == LDB_ERR_NO_SUCH_OBJECT) {
|
||||
ret = 0;
|
||||
*msgs = NULL;
|
||||
} else {
|
||||
DEBUG(4,("gendb_search_v: search failed: %s", ldb_errstring(ldb)));
|
||||
ret = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user