Skip to content
Snippets Groups Projects
Commit 35554dad authored by Howard Chu's avatar Howard Chu
Browse files

use ber_str2bv() instead of ch_strdup/strlen.

parent a1063a04
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment