Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lukas However
OpenLDAP
Commits
d05b0be4
Commit
d05b0be4
authored
Jul 14, 2019
by
Howard Chu
Committed by
Quanah Gibson-Mount
Jul 15, 2019
Browse files
ITS#7657 back-mdb improve alias deref
Don't search for scopes of entries with no children
parent
e224920e
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-mdb/dn2id.c
View file @
d05b0be4
...
...
@@ -641,6 +641,22 @@ mdb_idscope(
rc
=
mdb_cursor_open
(
txn
,
dbi
,
&
cursor
);
if
(
rc
)
return
rc
;
/* first see if base has any children at all */
key
.
mv_data
=
&
base
;
rc
=
mdb_cursor_get
(
cursor
,
&
key
,
&
data
,
MDB_SET
);
if
(
rc
)
{
goto
leave
;
}
{
size_t
dkids
;
rc
=
mdb_cursor_count
(
cursor
,
&
dkids
);
if
(
rc
==
0
)
{
if
(
dkids
<
2
)
{
goto
leave
;
}
}
}
ida
=
mdb_idl_first
(
ids
,
&
cid
);
/* Don't bother moving out of ids if it's a range */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment