/*
- * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*
* Copyright 2001, Pierangelo Masarati, All rights reserved. <ando@sys-net.it>
if ( i == candidate ) {
continue;
}
- meta_clear_one_candidate( lc->conns[ i ], reallyclean );
+ meta_clear_one_candidate( &lc->conns[ i ], reallyclean );
}
return 0;
lsc->ld = NULL;
}
- if ( lsc->bound_dn != NULL ) {
- ber_bvfree( lsc->bound_dn );
- lsc->bound_dn = NULL;
+ if ( lsc->bound_dn.bv_val != NULL ) {
+ ber_memfree( lsc->bound_dn.bv_val );
+ lsc->bound_dn.bv_val = NULL;
+ lsc->bound_dn.bv_len = 0;
}
return 0;