mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-19 02:28:47 -05:00
Fix leak of edn when binding as rootdn.
This commit is contained in:
parent
d1f0e487bc
commit
6d074e0911
1 changed files with 2 additions and 0 deletions
|
|
@ -128,6 +128,7 @@ ldbm_back_bind(
|
|||
if ( (a = attr_find( e->e_attrs, "userpassword" )) == NULL ) {
|
||||
if ( be_isroot_pw( be, dn, cred ) ) {
|
||||
/* front end will send result */
|
||||
if( *edn != NULL ) free( *edn );
|
||||
*edn = ch_strdup( be_root_dn( be ) );
|
||||
rc = 0;
|
||||
goto return_results;
|
||||
|
|
@ -142,6 +143,7 @@ ldbm_back_bind(
|
|||
{
|
||||
if ( be_isroot_pw( be, dn, cred ) ) {
|
||||
/* front end will send result */
|
||||
if( *edn != NULL ) free( *edn );
|
||||
*edn = ch_strdup( be_root_dn( be ) );
|
||||
rc = 0;
|
||||
goto return_results;
|
||||
|
|
|
|||
Loading…
Reference in a new issue