From: Howard Chu Date: Mon, 18 Mar 2002 08:57:59 +0000 (+0000) Subject: use ber_str2bv() instead of ch_strdup/strlen. X-Git-Tag: OPENLDAP_REL_ENG_2_MP~341 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=35554dadf3b5a72f961121930fdbeff5b644aafe;p=openldap use ber_str2bv() instead of ch_strdup/strlen. --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 44a98c45e1..952a6315ae 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -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