Commit 22edaef4 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#7762 shortcut NULL RDNs

parent b8875761
......@@ -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 );
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment