summaryrefslogtreecommitdiff
path: root/ldb/common/ldb_match.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldb/common/ldb_match.c')
-rw-r--r--ldb/common/ldb_match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldb/common/ldb_match.c b/ldb/common/ldb_match.c
index 64d0e547..4cde739d 100644
--- a/ldb/common/ldb_match.c
+++ b/ldb/common/ldb_match.c
@@ -147,7 +147,7 @@ static int ldb_match_equality(struct ldb_context *ldb,
int ret;
if (ldb_attr_dn(tree->u.equality.attr) == 0) {
- valuedn = ldb_dn_new(ldb, ldb, (char *)tree->u.equality.value.data);
+ valuedn = ldb_dn_from_ldb_val(ldb, ldb, &tree->u.equality.value);
if (valuedn == NULL) {
return 0;
}