s4:objectclass LDB module - use "ldb_oom" for expressing out of memory
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 5 Jun 2010 11:06:54 +0000 (13:06 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Mon, 7 Jun 2010 12:47:19 +0000 (14:47 +0200)
source4/dsdb/samdb/ldb_modules/objectclass.c

index 144e33ec8387b456bc46ffc314ce0d127e063d75..8e3b7aaab4b67f28b7a9893a51e2f822d8e938d5 100644 (file)
@@ -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;
        }