s4-dsdb: use ldb_operr() in the dsdb code
[metze/samba/wip.git] / source4 / dsdb / samdb / ldb_modules / lazy_commit.c
index b4eaf50d5152e56796dd0e7de81c949c897a62df..5c9c772f08a6c9bc83e331ee684ab93ee1d7503b 100644 (file)
@@ -113,7 +113,7 @@ static int unlazy_init(struct ldb_module *module)
        if (ret != LDB_SUCCESS) {
                ldb_debug(ldb, LDB_DEBUG_ERROR,
                        "lazy_commit: Unable to register control with rootdse!\n");
-               return LDB_ERR_OPERATIONS_ERROR;
+               return ldb_operr(ldb);
        }
 
        return ldb_next_init(module);