mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
use ber_str2bv() instead of ch_strdup/strlen.
This commit is contained in:
parent
a1063a041d
commit
35554dadf3
@ -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 New Issue
Block a user