slapi_ch_bvdup() should be implemented in terms of ber_dupbv()

This commit is contained in:
Luke Howard 2006-03-01 16:29:31 +00:00
parent f28f4ae610
commit fa1f4d3c38

View File

@ -1041,14 +1041,7 @@ slapi_ch_array_free( char **arrayp )
struct berval *
slapi_ch_bvdup(const struct berval *v)
{
struct berval *bv;
bv = (struct berval *) slapi_ch_malloc( sizeof(struct berval) );
bv->bv_len = v->bv_len;
bv->bv_val = slapi_ch_malloc( bv->bv_len );
AC_MEMCPY( bv->bv_val, v->bv_val, bv->bv_len );
return bv;
return ber_dupbv(NULL, (struct berval *)v);
}
struct berval **