git.samba.org
/
gd
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r19531: Make struct ldb_dn opaque and local to ldb_dn.c
[gd/samba-autobuild/.git]
/
source4
/
lib
/
ldb
/
common
/
ldb_match.c
diff --git
a/source4/lib/ldb/common/ldb_match.c
b/source4/lib/ldb/common/ldb_match.c
index 1fd12da7f3917c8b4172b1fdf055795c60874051..0cd220ad60706d9d6baf855d1afdc3087ec7b7e6 100644
(file)
--- a/
source4/lib/ldb/common/ldb_match.c
+++ b/
source4/lib/ldb/common/ldb_match.c
@@
-58,7
+58,7
@@
static int ldb_match_scope(struct ldb_context *ldb,
break;
case LDB_SCOPE_ONELEVEL:
- if (
dn->comp_num == (base->comp_num
+ 1)) {
+ if (
ldb_dn_get_comp_num(dn) == (ldb_dn_get_comp_num(base)
+ 1)) {
if (ldb_dn_compare_base(ldb, base, dn) == 0) {
ret = 1;
}