mirror of
https://github.com/samba-team/samba.git
synced 2025-01-29 21:47:30 +03:00
r16085: Set the error string if we fail to find a valid op to execute. Helps
in chasing down bugs :-) Andrew Bartlett (This used to be commit 9ede8edbaf1731f32814917439326f49b5f9f3ef)
This commit is contained in:
parent
c79f37fa1a
commit
6664ac8886
@ -189,9 +189,13 @@ void ldb_reset_err_string(struct ldb_context *ldb)
|
||||
}
|
||||
|
||||
#define FIRST_OP(ldb, op) do { \
|
||||
module = ldb->modules; \
|
||||
module = ldb->modules; \
|
||||
while (module && module->ops->op == NULL) module = module->next; \
|
||||
if (module == NULL) return LDB_ERR_OPERATIONS_ERROR; \
|
||||
if (module == NULL) { \
|
||||
ldb_set_errstring(ldb, \
|
||||
talloc_asprintf(ldb, "unable to find module or backend to handle operation: " #op)); \
|
||||
return LDB_ERR_OPERATIONS_ERROR; \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user