mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#7762 shortcut NULL RDNs
This commit is contained in:
parent
26ce222b6a
commit
79b12f2f93
@ -2987,7 +2987,7 @@ int ldap_dn2bv_x( LDAPDN dn, struct berval *bv, unsigned flags, void *ctx )
|
||||
* a null dn means an empty dn string
|
||||
* FIXME: better raise an error?
|
||||
*/
|
||||
if ( dn == NULL ) {
|
||||
if ( dn == NULL || dn[0] == NULL ) {
|
||||
bv->bv_val = LDAP_STRDUPX( "", ctx );
|
||||
return( LDAP_SUCCESS );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user