mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
really fix the invalid free issue (I totally overlooked this piece of code)
This commit is contained in:
parent
4ceeea4efa
commit
49619058ee
1 changed files with 11 additions and 1 deletions
|
|
@ -654,7 +654,17 @@ slap_sasl_authorize(
|
|||
return SASL_NOAUTHZ;
|
||||
}
|
||||
|
||||
conn->c_sasl_authz_dn = authzDN;
|
||||
/* FIXME: we need yet another dup because slap_sasl_getdn()
|
||||
* is using the bind operation slab */
|
||||
if ( conn->c_sasl_bindop ) {
|
||||
ber_dupbv( &conn->c_sasl_authz_dn, &authzDN );
|
||||
slap_sl_free( authzDN.bv_val,
|
||||
conn->c_sasl_bindop->o_tmpmemctx );
|
||||
|
||||
} else {
|
||||
conn->c_sasl_authz_dn = authzDN;
|
||||
}
|
||||
|
||||
ok:
|
||||
if (conn->c_sasl_bindop) {
|
||||
Statslog( LDAP_DEBUG_STATS,
|
||||
|
|
|
|||
Loading…
Reference in a new issue