From 8d62a6ba2cf223ae99f1c10b6d3593328de83ef5 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 11 Jul 2006 03:44:51 +0000 Subject: r16936: Correct comment in this comparison function Andrew Bartlett (This used to be commit d64987a2882c70669421b02aee8d75d95ce99bcb) --- source4/lib/ldb/common/ldb_dn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/ldb/common') 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) { -- cgit