summaryrefslogtreecommitdiff
path: root/ldb/common/attrib_handlers.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-12-22 15:54:56 -0500
committerSimo Sorce <idra@samba.org>2008-12-22 18:52:48 -0500
commit41718e315ea78998fab0893fd5f148a49d8faab8 (patch)
treeecbc13fb3abce56481ba04e13d9aa1b69b19783b /ldb/common/attrib_handlers.c
parenta93a69380dc6718c49879af628ed69f8e2b70797 (diff)
downloadsssd-41718e315ea78998fab0893fd5f148a49d8faab8.tar.gz
sssd-41718e315ea78998fab0893fd5f148a49d8faab8.tar.bz2
sssd-41718e315ea78998fab0893fd5f148a49d8faab8.zip
Rebase ldb code with all changes in samba master
Diffstat (limited to 'ldb/common/attrib_handlers.c')
-rw-r--r--ldb/common/attrib_handlers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldb/common/attrib_handlers.c b/ldb/common/attrib_handlers.c
index fb57e2da..5ec86b5b 100644
--- a/ldb/common/attrib_handlers.c
+++ b/ldb/common/attrib_handlers.c
@@ -240,7 +240,7 @@ int ldb_canonicalise_dn(struct ldb_context *ldb, void *mem_ctx,
out->length = 0;
out->data = NULL;
- dn = ldb_dn_new(ldb, mem_ctx, (char *)in->data);
+ dn = ldb_dn_from_ldb_val(ldb, mem_ctx, in);
if ( ! ldb_dn_validate(dn)) {
return LDB_ERR_INVALID_DN_SYNTAX;
}
@@ -268,10 +268,10 @@ int ldb_comparison_dn(struct ldb_context *ldb, void *mem_ctx,
struct ldb_dn *dn1 = NULL, *dn2 = NULL;
int ret;
- dn1 = ldb_dn_new(ldb, mem_ctx, (char *)v1->data);
+ dn1 = ldb_dn_from_ldb_val(ldb, mem_ctx, v1);
if ( ! ldb_dn_validate(dn1)) return -1;
- dn2 = ldb_dn_new(ldb, mem_ctx, (char *)v2->data);
+ dn2 = ldb_dn_from_ldb_val(ldb, mem_ctx, v2);
if ( ! ldb_dn_validate(dn2)) {
talloc_free(dn1);
return -1;