summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-07-11 03:44:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:10:02 -0500
commit8d62a6ba2cf223ae99f1c10b6d3593328de83ef5 (patch)
tree91f8571114cfffcc2c0382ef8790272970b06f65 /source4/lib/ldb/common
parent30c1716eda1f0282d4776934baa35aa04ebba48c (diff)
downloadsamba-8d62a6ba2cf223ae99f1c10b6d3593328de83ef5.tar.gz
samba-8d62a6ba2cf223ae99f1c10b6d3593328de83ef5.tar.bz2
samba-8d62a6ba2cf223ae99f1c10b6d3593328de83ef5.zip
r16936: Correct comment in this comparison function
Andrew Bartlett (This used to be commit d64987a2882c70669421b02aee8d75d95ce99bcb)
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/ldb_dn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c
index bebb6cc9a0..064dc27a27 100644
--- a/source4/lib/ldb/common/ldb_dn.c
+++ b/source4/lib/ldb/common/ldb_dn.c
@@ -493,11 +493,11 @@ int ldb_dn_compare_base(struct ldb_context *ldb,
if (base == NULL || base->comp_num == 0) return 0;
if (dn == NULL || dn->comp_num == 0) return -1;
+ /* if the base has more componts than the dn, then they differ */
if (base->comp_num > dn->comp_num) {
return (dn->comp_num - base->comp_num);
}
- /* if the number of components doesn't match they differ */
n0 = base->comp_num - 1;
n1 = dn->comp_num - 1;
while (n0 >= 0 && n1 >= 0) {