diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-02-08 17:09:49 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-02-08 17:09:49 +1100 |
commit | 5153c6726784d64e9892e2c9c6efdcc01330c7ff (patch) | |
tree | 89a9880ca6bd593a226b7ad9f62a93149f27ebcd /source4/dsdb/samdb | |
parent | 9e681efdf0023cc835353befc9c31e931586ebd7 (diff) | |
download | samba-5153c6726784d64e9892e2c9c6efdcc01330c7ff.tar.gz samba-5153c6726784d64e9892e2c9c6efdcc01330c7ff.tar.bz2 samba-5153c6726784d64e9892e2c9c6efdcc01330c7ff.zip |
Reset error strings
Avoid leaking error strings up to the application, when we are ignoring them.
(This used to be commit 57b4b43b6548d1cd81cfaebc5ea8abc88aaca989)
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/schema_fsmo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/schema_fsmo.c b/source4/dsdb/samdb/ldb_modules/schema_fsmo.c index 559c91bd2d..f9dd131fd4 100644 --- a/source4/dsdb/samdb/ldb_modules/schema_fsmo.c +++ b/source4/dsdb/samdb/ldb_modules/schema_fsmo.c @@ -59,6 +59,7 @@ static int schema_fsmo_init(struct ldb_module *module) schema_dn = samdb_schema_dn(module->ldb); if (!schema_dn) { + ldb_reset_err_string(module->ldb); ldb_debug(module->ldb, LDB_DEBUG_WARNING, "schema_fsmo_init: no schema dn present: (skip schema loading)\n"); return ldb_next_init(module); @@ -91,6 +92,7 @@ static int schema_fsmo_init(struct ldb_module *module) NULL, schema_attrs, &schema_res); if (ret == LDB_ERR_NO_SUCH_OBJECT) { + ldb_reset_err_string(module->ldb); ldb_debug(module->ldb, LDB_DEBUG_WARNING, "schema_fsmo_init: no schema head present: (skip schema loading)\n"); talloc_free(mem_ctx); |