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
5a2017d4
Commit
5a2017d4
authored
Dec 01, 2020
by
Howard Chu
Committed by
Quanah Gibson-Mount
Dec 02, 2020
Browse files
ITS
#9412
fix AVA_Sort on invalid RDN
parent
4797346e
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/dn.c
View file @
5a2017d4
...
...
@@ -233,6 +233,7 @@ AVA_Sort( LDAPRDN rdn, int nAVAs )
{
LDAPAVA
*
ava_i
;
int
i
;
int
rc
=
LDAP_SUCCESS
;
assert
(
rdn
!=
NULL
);
...
...
@@ -250,7 +251,7 @@ AVA_Sort( LDAPRDN rdn, int nAVAs )
/* RFC4512 does not allow multiple AVAs
* with the same attribute type in RDN (ITS#5968) */
if
(
a
==
0
)
r
eturn
LDAP_INVALID_DN_SYNTAX
;
r
c
=
LDAP_INVALID_DN_SYNTAX
;
if
(
a
>
0
)
break
;
...
...
@@ -259,7 +260,7 @@ AVA_Sort( LDAPRDN rdn, int nAVAs )
}
rdn
[
j
+
1
]
=
ava_i
;
}
return
LDAP_SUCCESS
;
return
rc
;
}
static
int
...
...
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