summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-16 14:07:51 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-16 15:01:45 +0100
commitc3509d88a4920e7dcbc77d5af089c50f71642d0a (patch)
treec68ee0e6ce474381829a1ded33f933cd188346c1 /source4/dsdb
parent9447f863d281809a752836da8136eeae89c00353 (diff)
downloadsamba-c3509d88a4920e7dcbc77d5af089c50f71642d0a.tar.gz
samba-c3509d88a4920e7dcbc77d5af089c50f71642d0a.tar.bz2
samba-c3509d88a4920e7dcbc77d5af089c50f71642d0a.zip
s4:resolve_oids LDB module - not really a change but a nicer method to call "talloc_reference"
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/resolve_oids.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/resolve_oids.c b/source4/dsdb/samdb/ldb_modules/resolve_oids.c
index 9928945375..16cabc18cd 100644
--- a/source4/dsdb/samdb/ldb_modules/resolve_oids.c
+++ b/source4/dsdb/samdb/ldb_modules/resolve_oids.c
@@ -521,7 +521,8 @@ static int resolve_oids_search(struct ldb_module *module, struct ldb_request *re
return LDB_ERR_OPERATIONS_ERROR;
}
- if (talloc_reference(tree, schema) == NULL) {
+ schema = talloc_reference(tree, schema);
+ if (!schema) {
ldb_oom(ldb);
return LDB_ERR_OPERATIONS_ERROR;
}