summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-10-19 22:30:26 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-10-19 12:16:07 +0000
commit4b4dcaf4b300c3d66833e9b0eff91c8365275d9d (patch)
treee6e06993ce29e57dac304609a7359c95197a704c /source4
parent439a1fe2d0db8a784431a4dbc070faef6e4f788e (diff)
downloadsamba-4b4dcaf4b300c3d66833e9b0eff91c8365275d9d.tar.gz
samba-4b4dcaf4b300c3d66833e9b0eff91c8365275d9d.tar.bz2
samba-4b4dcaf4b300c3d66833e9b0eff91c8365275d9d.zip
s4-dsdb Reset the error string after 'expected' errors.
This helps ensure that we don't get confusing error strings in the logs on other error cases. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 19 12:16:07 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/util.c b/source4/dsdb/samdb/ldb_modules/util.c
index e550630c5d..57066d9c88 100644
--- a/source4/dsdb/samdb/ldb_modules/util.c
+++ b/source4/dsdb/samdb/ldb_modules/util.c
@@ -689,6 +689,7 @@ int dsdb_module_load_partition_usn(struct ldb_module *module, struct ldb_dn *dn,
an implicit value of zero */
*uSN = 0;
talloc_free(tmp_ctx);
+ ldb_reset_err_string(ldb);
return LDB_SUCCESS;
}