Fix leak of edn when binding as rootdn.

This commit is contained in:
Kurt Zeilenga 1999-08-20 20:09:48 +00:00
parent d1f0e487bc
commit 6d074e0911

View file

@ -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;