summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/ldb/common/ldb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c
index f49fb2d955..db5333187b 100644
--- a/source4/lib/ldb/common/ldb.c
+++ b/source4/lib/ldb/common/ldb.c
@@ -554,9 +554,7 @@ const struct ldb_dn *ldb_auto_basedn(struct ldb_context *ldb)
basedn = ldb_msg_find_attr_as_dn(ldb, res->msgs[0], "defaultNamingContext");
}
- if (basedn) {
- ldb_set_opaque(ldb, "auto_baseDN", basedn);
- }
+ ldb_set_opaque(ldb, "auto_baseDN", basedn);
talloc_free(tmp_ctx);
return basedn;