summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-10-29 17:10:04 -0700
committerJeremy Allison <jra@samba.org>2008-10-29 17:10:04 -0700
commit031c5d2753281ac4e8ae2a46f4e1b4bf19d2fa70 (patch)
tree12991ac1d620c52a298811b3d38be6f04e2ee79c /source4/lib/ldb
parent0a6ff29e290123aa70daa8e293426249453352ce (diff)
parent753af36a3e194f645ec0b68a033199035e71c909 (diff)
downloadsamba-031c5d2753281ac4e8ae2a46f4e1b4bf19d2fa70.tar.gz
samba-031c5d2753281ac4e8ae2a46f4e1b4bf19d2fa70.tar.bz2
samba-031c5d2753281ac4e8ae2a46f4e1b4bf19d2fa70.zip
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/common/ldb_dn.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c
index e36aea4e69..5e6fb96457 100644
--- a/source4/lib/ldb/common/ldb_dn.c
+++ b/source4/lib/ldb/common/ldb_dn.c
@@ -749,9 +749,6 @@ int ldb_dn_compare_base(struct ldb_dn *base, struct ldb_dn *dn)
if (base->linearized && dn->linearized) {
/* try with a normal compare first, if we are lucky
* we will avoid exploding and casfolding */
- int dif;
- dif = strlen(dn->linearized) - strlen(base->linearized);
- if (dif < 0) return dif;
if (strcmp(base->linearized, &dn->linearized[dif]) == 0) return 0;
}