r16936: Correct comment in this comparison function
authorAndrew Bartlett <abartlet@samba.org>
Tue, 11 Jul 2006 03:44:51 +0000 (03:44 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:10:02 +0000 (14:10 -0500)
Andrew Bartlett
(This used to be commit d64987a2882c70669421b02aee8d75d95ce99bcb)

source4/lib/ldb/common/ldb_dn.c

index bebb6cc9a0ce4f07cf249586e5479772e867e00b..064dc27a27464795976f97358af31299f65060f5 100644 (file)
@@ -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) {