mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
ITS#2771 fix memory usage in LDAPDN_rewrite, fix normalizer
This commit is contained in:
parent
c57db6c33e
commit
dee604c608
2 changed files with 4 additions and 2 deletions
|
|
@ -329,8 +329,10 @@ LDAPDN_rewrite( LDAPDN dn, unsigned flags, void *ctx )
|
|||
|
||||
|
||||
if( bv.bv_val ) {
|
||||
ber_memfree_x( ava->la_value.bv_val, ctx );
|
||||
if ( ava->la_flags & LDAP_AVA_FREE_VALUE )
|
||||
ber_memfree_x( ava->la_value.bv_val, ctx );
|
||||
ava->la_value = bv;
|
||||
ava->la_flags |= LDAP_AVA_FREE_VALUE;
|
||||
}
|
||||
|
||||
if( do_sort ) AVA_Sort( rdn, iAVA );
|
||||
|
|
|
|||
|
|
@ -2121,7 +2121,7 @@ certificateExactNormalize(
|
|||
|
||||
if( val->bv_val[0] != LBER_SEQUENCE ) {
|
||||
/* assume serialNumberAndIssuer */
|
||||
return serialNumberAndIssuerNormalize(0,NULL,NULL,val,normalized,NULL);
|
||||
return serialNumberAndIssuerNormalize(0,NULL,NULL,val,normalized,ctx);
|
||||
}
|
||||
|
||||
p = val->bv_val;
|
||||
|
|
|
|||
Loading…
Reference in a new issue