diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-12-22 11:50:49 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-12-23 10:36:07 +0100 |
commit | eddf0d0fe277cc763bbe0bb4706ab1a4aebf8151 (patch) | |
tree | bd88b96fdbe570f7b62deabf8f0dfcfd058f4d9e /lib/ldb | |
parent | 601f3822d5c86f30aff185bc2a5ed7d4803cac51 (diff) | |
download | samba-eddf0d0fe277cc763bbe0bb4706ab1a4aebf8151.tar.gz samba-eddf0d0fe277cc763bbe0bb4706ab1a4aebf8151.tar.bz2 samba-eddf0d0fe277cc763bbe0bb4706ab1a4aebf8151.zip |
ldb:ldb_tdb.c - fix warnings in "ltdb_init_rootdse"
We should ignore the LDB result.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/ldb')
-rw-r--r-- | lib/ldb/ldb_tdb/ldb_tdb.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/ldb/ldb_tdb/ldb_tdb.c b/lib/ldb/ldb_tdb/ldb_tdb.c index a85e41d987..ebde8a34f9 100644 --- a/lib/ldb/ldb_tdb/ldb_tdb.c +++ b/lib/ldb/ldb_tdb/ldb_tdb.c @@ -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; |