mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
cleanup
This commit is contained in:
parent
ab94342cc6
commit
7bee593572
@ -416,10 +416,10 @@ whoami_extop (
|
|||||||
|
|
||||||
bv = (struct berval *) ch_malloc( sizeof(struct berval) );
|
bv = (struct berval *) ch_malloc( sizeof(struct berval) );
|
||||||
if( op->o_dn.bv_len ) {
|
if( op->o_dn.bv_len ) {
|
||||||
bv->bv_len = op->o_dn.bv_len + sizeof("dn:")-1;
|
bv->bv_len = op->o_dn.bv_len + STRLENOF( "dn:" );
|
||||||
bv->bv_val = ch_malloc( bv->bv_len + 1 );
|
bv->bv_val = ch_malloc( bv->bv_len + 1 );
|
||||||
AC_MEMCPY( bv->bv_val, "dn:", sizeof("dn:")-1 );
|
AC_MEMCPY( bv->bv_val, "dn:", STRLENOF( "dn:" ) );
|
||||||
AC_MEMCPY( &bv->bv_val[sizeof("dn:")-1], op->o_dn.bv_val,
|
AC_MEMCPY( &bv->bv_val[STRLENOF( "dn:" )], op->o_dn.bv_val,
|
||||||
op->o_dn.bv_len );
|
op->o_dn.bv_len );
|
||||||
bv->bv_val[bv->bv_len] = '\0';
|
bv->bv_val[bv->bv_len] = '\0';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user