1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

s4:subtree_rename LDB module - "subren_ctx_init" - fix the "out of memory" return

This commit is contained in:
Matthias Dieter Wallnöfer 2010-07-31 21:26:38 +02:00
parent 1b7029b47b
commit 4e3afb36da

View File

@ -47,7 +47,7 @@ struct subtree_rename_context {
};
static struct subtree_rename_context *subren_ctx_init(struct ldb_module *module,
struct ldb_request *req)
struct ldb_request *req)
{
struct ldb_context *ldb;
struct subtree_rename_context *ac;
@ -56,7 +56,6 @@ static struct subtree_rename_context *subren_ctx_init(struct ldb_module *module,
ac = talloc_zero(req, struct subtree_rename_context);
if (ac == NULL) {
ldb_oom(ldb);
return NULL;
}
@ -241,7 +240,7 @@ static int subtree_rename(struct ldb_module *module, struct ldb_request *req)
ac = subren_ctx_init(module, req);
if (!ac) {
return ldb_operr(ldb);
return ldb_oom(ldb);
}
/* add this entry as the first to do */