summaryrefslogtreecommitdiffstats
path: root/src/tests/common_dom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/common_dom.c')
-rw-r--r--src/tests/common_dom.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/common_dom.c b/src/tests/common_dom.c
index 24d1f5a8a..1d4800179 100644
--- a/src/tests/common_dom.c
+++ b/src/tests/common_dom.c
@@ -22,6 +22,7 @@
#include <talloc.h>
#include <errno.h>
+#include <ldb_module.h>
#include "tests/common.h"
@@ -188,6 +189,9 @@ mock_domain(TALLOC_CTX *mem_ctx,
goto done;
}
+ /* reset ldb error if any */
+ ldb_reset_err_string(sysdb_ctx_get_ldb(domain->sysdb));
+
/* init with an AD-style regex to be able to test flat name */
ret = sss_names_init_from_args(domain,
"(((?P<domain>[^\\\\]+)\\\\(?P<name>.+$))|" \