From 96fe39e99f40307205034ef824fdb9d38e17313a Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 19 Jun 2004 15:17:41 +0000 Subject: [PATCH] minor cleanup --- servers/slapd/bind.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; -- 2.39.5