From 2a294d380f13edad6fcdd3572336ba797baaa0e1 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 5 Jun 2010 13:06:54 +0200 Subject: s4:objectclass LDB module - use "ldb_oom" for expressing out of memory --- source4/dsdb/samdb/ldb_modules/objectclass.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/dsdb') diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c index 144e33ec83..8e3b7aaab4 100644 --- a/source4/dsdb/samdb/ldb_modules/objectclass.c +++ b/source4/dsdb/samdb/ldb_modules/objectclass.c @@ -72,7 +72,7 @@ static struct oc_context *oc_init_context(struct ldb_module *module, ac = talloc_zero(req, struct oc_context); if (ac == NULL) { - ldb_set_errstring(ldb, "Out of Memory"); + ldb_oom(ldb); return NULL; } @@ -731,7 +731,6 @@ static int objectclass_modify(struct ldb_module *module, struct ldb_request *req ac = oc_init_context(module, req); if (ac == NULL) { - ldb_oom(ldb); return LDB_ERR_OPERATIONS_ERROR; } -- cgit