ldb:ldb_tdb.c - fix warnings in "ltdb_init_rootdse"
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 22 Dec 2011 10:50:49 +0000 (11:50 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 23 Dec 2011 09:36:07 +0000 (10:36 +0100)
We should ignore the LDB result.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/ldb/ldb_tdb/ldb_tdb.c

index a85e41d987e8ca0ad1a4b796aeb80e098e444aa8..ebde8a34f92dd2913c1090dce7627d6d8fd7be75 100644 (file)
@@ -1418,14 +1418,8 @@ static int ltdb_handle_request(struct ldb_module *module,
 
 static int ltdb_init_rootdse(struct ldb_module *module)
 {
-       struct ldb_context *ldb;
-       int ret;
-
-       ldb = ldb_module_get_ctx(module);
-
-       ret = ldb_mod_register_control(module,
-                                      LDB_CONTROL_PERMISSIVE_MODIFY_OID);
        /* ignore errors on this - we expect it for non-sam databases */
+       ldb_mod_register_control(module, LDB_CONTROL_PERMISSIVE_MODIFY_OID);
 
        /* there can be no module beyond the backend, just return */
        return LDB_SUCCESS;