mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#2464 don't strdup NULL DN
This commit is contained in:
parent
deea8db4cd
commit
e4f1c459c2
@ -1066,8 +1066,10 @@ slapi_search_internal_bind(
|
||||
ptr = (Slapi_PBlock *)op->o_pb;
|
||||
op->o_ctrls = controls;
|
||||
|
||||
dn.bv_val = slapi_ch_strdup(ldn);
|
||||
dn.bv_len = strlen(ldn);
|
||||
if ( ldn != NULL ) {
|
||||
dn.bv_val = slapi_ch_strdup(ldn);
|
||||
dn.bv_len = strlen(ldn);
|
||||
}
|
||||
|
||||
rs.sr_err = dnPrettyNormal( NULL, &dn, &op->o_req_dn, &op->o_req_ndn, NULL );
|
||||
if ( rs.sr_err != LDAP_SUCCESS ) {
|
||||
|
Loading…
Reference in New Issue
Block a user