From: Luke Howard Date: Wed, 23 Apr 2003 07:01:56 +0000 (+0000) Subject: Fix incorrect usage of slapi_ch_free() X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~272 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ebe2c10994d1ac68a511c0edfab8bf98d04d8a89;p=openldap Fix incorrect usage of slapi_ch_free() --- diff --git a/servers/slapd/slapi/slapi_ops.c b/servers/slapd/slapi/slapi_ops.c index 0cc32804d4..18b66e63b6 100644 --- a/servers/slapd/slapi/slapi_ops.c +++ b/servers/slapd/slapi/slapi_ops.c @@ -1143,8 +1143,8 @@ slapi_search_internal_bind( } if ( !op->o_req_ndn.bv_len && default_search_nbase.bv_len ) { - slapi_ch_free( (void **)op->o_req_dn.bv_val ); - slapi_ch_free( (void **)op->o_req_ndn.bv_val ); + slapi_ch_free( (void **)&op->o_req_dn.bv_val ); + slapi_ch_free( (void **)&op->o_req_ndn.bv_val ); ber_dupbv( &op->o_req_dn, &default_search_base ); ber_dupbv( &op->o_req_ndn, &default_search_nbase );