use ber_str2bv() instead of ch_strdup/strlen.

This commit is contained in:
Howard Chu 2002-03-18 08:57:59 +00:00
parent a1063a041d
commit 35554dadf3

View File

@ -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