Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
James Lowden
OpenLDAP
Commits
9f883f89
Commit
9f883f89
authored
May 11, 2021
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
May 13, 2021
Browse files
ITS
#9551
Handle empty DN in extended filters
parent
57da7df5
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/dn.c
View file @
9f883f89
...
...
@@ -839,7 +839,9 @@ dnRelativeMatch(
match
=
memcmp
(
value
->
bv_val
,
asserted
->
bv_val
,
value
->
bv_len
);
}
else
{
if
(
DN_SEPARATOR
(
if
(
BER_BVISEMPTY
(
asserted
)
)
{
match
=
0
;
}
else
if
(
DN_SEPARATOR
(
value
->
bv_val
[
value
->
bv_len
-
asserted
->
bv_len
-
1
]
))
{
match
=
memcmp
(
...
...
@@ -865,7 +867,9 @@ dnRelativeMatch(
if
(
asserted
->
bv_len
>=
value
->
bv_len
)
{
match
=
-
1
;
}
else
{
if
(
DN_SEPARATOR
(
if
(
BER_BVISEMPTY
(
asserted
)
)
{
match
=
0
;
}
else
if
(
DN_SEPARATOR
(
value
->
bv_val
[
value
->
bv_len
-
asserted
->
bv_len
-
1
]
))
{
match
=
memcmp
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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