From 35554dadf3b5a72f961121930fdbeff5b644aafe Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 18 Mar 2002 08:57:59 +0000 Subject: [PATCH] use ber_str2bv() instead of ch_strdup/strlen. --- servers/slapd/connection.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.39.5