summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-07-31 21:26:38 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-07-31 21:33:33 +0200
commit4e3afb36dab12b460cdd0cbc95607d4032115c05 (patch)
tree812d9fc94f57f7a47b5bbca5195510eb0dcc2895 /source4/dsdb/samdb/ldb_modules
parent1b7029b47be296588b80e4c2ba871dba572cf18e (diff)
downloadsamba-4e3afb36dab12b460cdd0cbc95607d4032115c05.tar.gz
samba-4e3afb36dab12b460cdd0cbc95607d4032115c05.tar.bz2
samba-4e3afb36dab12b460cdd0cbc95607d4032115c05.zip
s4:subtree_rename LDB module - "subren_ctx_init" - fix the "out of memory" return
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/subtree_rename.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/subtree_rename.c b/source4/dsdb/samdb/ldb_modules/subtree_rename.c
index 6d79db1fb0..49cf9a7e8b 100644
--- a/source4/dsdb/samdb/ldb_modules/subtree_rename.c
+++ b/source4/dsdb/samdb/ldb_modules/subtree_rename.c
@@ -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 */