diff options
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/resolve_oids.c | 3 |
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; } |