Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP1
openldap2.24986
0218-ITS-9412-fix-AVA_Sort-on-invalid-RDN.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0218-ITS-9412-fix-AVA_Sort-on-invalid-RDN.patch of Package openldap2.24986
From ef319e3bfd3c092a6a64d43a1f4a5a86a9aa1b58 Mon Sep 17 00:00:00 2001 From: Howard Chu <hyc@openldap.org> Date: Tue, 1 Dec 2020 18:32:35 +0000 Subject: [PATCH 218/224] ITS#9412 fix AVA_Sort on invalid RDN --- servers/slapd/dn.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/servers/slapd/dn.c b/servers/slapd/dn.c index c3465498d..4ac6cf313 100644 --- a/servers/slapd/dn.c +++ b/servers/slapd/dn.c @@ -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 -- 2.30.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor