From c3509d88a4920e7dcbc77d5af089c50f71642d0a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Tue, 16 Mar 2010 14:07:51 +0100 Subject: [PATCH] s4:resolve_oids LDB module - not really a change but a nicer method to call "talloc_reference" --- source4/dsdb/samdb/ldb_modules/resolve_oids.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/dsdb/samdb/ldb_modules/resolve_oids.c b/source4/dsdb/samdb/ldb_modules/resolve_oids.c index 99289453754..16cabc18cdb 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; } -- 2.11.4.GIT