}
void
-slapi_int_connection_init_pb( Slapi_PBlock *pb, ber_tag_t OpType )
+slapi_int_connection_init_pb( Slapi_PBlock *pb, ber_tag_t tag )
{
Connection *conn;
Operation *op;
conn->c_send_search_reference = slap_send_search_reference;
/* operation object */
- op->o_tag = OpType;
+ op->o_tag = tag;
op->o_protocol = LDAP_VERSION3;
BER_BVZERO( &op->o_authmech );
op->o_time = slap_get_time();
break;
}
+ slapi_ch_free_string( &conn->c_authmech.bv_val );
+ slapi_ch_free_string( &conn->c_dn.bv_val );
+ slapi_ch_free_string( &conn->c_ndn.bv_val );
+
if ( conn->c_sb != NULL ) {
ber_sockbuf_free( conn->c_sb );
}
{
BI_op_bind **func;
SlapReply *rs = &pb->rs;
+ int rc;
PBLOCK_ASSERT_INTOP( pb, 0 );
- rs->sr_err = slapi_int_get_ctrls( pb );
- if ( rs->sr_err != LDAP_SUCCESS ) {
- return rs->sr_err;
+ rc = slapi_int_get_ctrls( pb );
+ if ( rc != LDAP_SUCCESS ) {
+ rs->sr_err = rc;
+ return rc;
}
func = &pb->pop->o_bd->be_bind;
- rs->sr_err = func[which]( pb->pop, &pb->rs );
+ rc = func[which]( pb->pop, &pb->rs );
- return rs->sr_err;
+ return rc;
}
int
pb->pop->ors_filter = NULL;
}
- slapi_pblock_set( pb, SLAPI_X_INTOP_RESULT_CALLBACK, NULL );
- slapi_pblock_set( pb, SLAPI_X_INTOP_SEARCH_ENTRY_CALLBACK, NULL );
- slapi_pblock_set( pb, SLAPI_X_INTOP_REFERRAL_ENTRY_CALLBACK, NULL );
- slapi_pblock_set( pb, SLAPI_X_INTOP_CALLBACK_DATA, NULL );
+ slapi_pblock_delete_param( pb, SLAPI_X_INTOP_RESULT_CALLBACK );
+ slapi_pblock_delete_param( pb, SLAPI_X_INTOP_SEARCH_ENTRY_CALLBACK );
+ slapi_pblock_delete_param( pb, SLAPI_X_INTOP_REFERRAL_ENTRY_CALLBACK );
+ slapi_pblock_delete_param( pb, SLAPI_X_INTOP_CALLBACK_DATA );
return 0;
}