mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +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;
|
||||
|
||||
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