mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-11 01:12:54 -05:00
use ber_str2bv() instead of ch_strdup/strlen.
This commit is contained in:
parent
a1063a041d
commit
35554dadf3
1 changed files with 1 additions and 2 deletions
|
|
@ -1349,8 +1349,7 @@ connection_input(
|
|||
#ifdef LDAP_CONNECTIONLESS
|
||||
op->o_peeraddr = peeraddr;
|
||||
if (cdn) {
|
||||
op->o_dn.bv_val = ch_strdup( cdn );
|
||||
op->o_dn.bv_len = strlen( op->o_dn.bv_val );
|
||||
ber_str2bv( cdn, 0, 1, &op->o_dn );
|
||||
op->o_protocol = LDAP_VERSION2;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue