From: Pierangelo Masarati Date: Sat, 19 Jun 2004 15:17:41 +0000 (+0000) Subject: minor cleanup X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~227 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=96fe39e99f40307205034ef824fdb9d38e17313a;p=openldap minor cleanup --- diff --git a/servers/slapd/bind.c b/servers/slapd/bind.c index ddeec15a14..eb5ead1044 100644 --- a/servers/slapd/bind.c +++ b/servers/slapd/bind.c @@ -308,11 +308,9 @@ do_bind( ber_dupbv( &op->o_conn->c_ndn, &op->o_conn->c_dn ); } op->o_tmpfree( op->orb_edn.bv_val, op->o_tmpmemctx ); - op->orb_edn.bv_val = NULL; - op->orb_edn.bv_len = 0; + BER_BVZERO( &op->orb_edn ); op->o_conn->c_authmech = op->o_conn->c_sasl_bind_mech; - op->o_conn->c_sasl_bind_mech.bv_val = NULL; - op->o_conn->c_sasl_bind_mech.bv_len = 0; + BER_BVZERO( &op->o_conn->c_sasl_bind_mech ); op->o_conn->c_sasl_bind_in_progress = 0; op->o_conn->c_sasl_ssf = op->orb_ssf;