ITS#6035 Plug olcAuthIDRewrite cn=config leak

This commit is contained in:
Ondřej Kuzník 2022-08-31 13:53:13 +01:00
parent 4697f4b3e0
commit f3ed13fad2

View file

@ -1423,8 +1423,9 @@ int slap_sasl_rewrite_delete( int valx ) {
return 1; return 1;
} }
i = valx;
ber_memfree( authz_rewrites[ i ].bv_val ); ber_memfree( authz_rewrites[ i ].bv_val );
for ( i = valx; !BER_BVISNULL( &authz_rewrites[ i + 1 ] ); i++ ) for ( ; !BER_BVISNULL( &authz_rewrites[ i + 1 ] ); i++ )
{ {
authz_rewrites[ i ] = authz_rewrites[ i + 1 ]; authz_rewrites[ i ] = authz_rewrites[ i + 1 ];
} }