Commit dee604c6 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#2771 fix memory usage in LDAPDN_rewrite, fix normalizer

parent c57db6c3
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment