summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/rootdse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c
index 248a7203c8..2e7c97af38 100644
--- a/source4/dsdb/samdb/ldb_modules/rootdse.c
+++ b/source4/dsdb/samdb/ldb_modules/rootdse.c
@@ -146,12 +146,12 @@ static int expand_dn_in_message(struct ldb_module *module, struct ldb_message *m
dn2 = res->msgs[0]->dn;
v->data = (uint8_t *)ldb_dn_get_extended_linearized(msg->elements, dn2, edn_type);
- v->length = strlen((char *)v->data);
-
if (v->data == NULL) {
talloc_free(tmp_ctx);
return ldb_operr(ldb);
}
+ v->length = strlen((char *)v->data);
+
talloc_free(tmp_ctx);