summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-22 17:06:14 -0700
committerAndrew Tridgell <tridge@samba.org>2009-09-22 17:10:06 -0700
commit1dfcd4c22c7627c1474ecf929fa24fb35b381eae (patch)
treedf9a76e12e996241e3c7fe0f18bc59cad92cf954 /source4
parentbb3bdb3a62b3b895b9e0c013483a6356ecd7a3aa (diff)
downloadsamba-1dfcd4c22c7627c1474ecf929fa24fb35b381eae.tar.gz
samba-1dfcd4c22c7627c1474ecf929fa24fb35b381eae.tar.bz2
samba-1dfcd4c22c7627c1474ecf929fa24fb35b381eae.zip
s4-ldb: fixed call argument order for ldb_dn_from_ldb_val
This caused _lots_ of problems, especially in server side sort
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/common/attrib_handlers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/ldb/common/attrib_handlers.c b/source4/lib/ldb/common/attrib_handlers.c
index 53795fdbd3..ba21fcac9b 100644
--- a/source4/lib/ldb/common/attrib_handlers.c
+++ b/source4/lib/ldb/common/attrib_handlers.c
@@ -287,7 +287,7 @@ static int ldb_canonicalise_dn(struct ldb_context *ldb, void *mem_ctx,
out->length = 0;
out->data = NULL;
- dn = ldb_dn_from_ldb_val(ldb, mem_ctx, in);
+ dn = ldb_dn_from_ldb_val(mem_ctx, ldb, in);
if ( ! ldb_dn_validate(dn)) {
return LDB_ERR_INVALID_DN_SYNTAX;
}
@@ -315,10 +315,10 @@ static int ldb_comparison_dn(struct ldb_context *ldb, void *mem_ctx,
struct ldb_dn *dn1 = NULL, *dn2 = NULL;
int ret;
- dn1 = ldb_dn_from_ldb_val(ldb, mem_ctx, v1);
+ dn1 = ldb_dn_from_ldb_val(mem_ctx, ldb, v1);
if ( ! ldb_dn_validate(dn1)) return -1;
- dn2 = ldb_dn_from_ldb_val(ldb, mem_ctx, v2);
+ dn2 = ldb_dn_from_ldb_val(mem_ctx, ldb, v2);
if ( ! ldb_dn_validate(dn2)) {
talloc_free(dn1);
return -1;