mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#9412 fix AVA_Sort on invalid RDN
This commit is contained in:
parent
2aef56cd24
commit
42d42421a8
@ -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 )
|
||||
return LDAP_INVALID_DN_SYNTAX;
|
||||
rc = 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
|
||||
|
Loading…
Reference in New Issue
Block a user