ITS#7537 release entry on failure

This commit is contained in:
Ryan Tandy 2015-09-01 18:56:19 -07:00
parent 62813f55af
commit 572ad2b037

View File

@ -576,6 +576,12 @@ ppolicy_get( Operation *op, Entry *e, PassPolicy *pp )
return;
defaultpol:
if ( pe ) {
op->o_bd->bd_info = (BackendInfo *)on->on_info;
be_entry_release_r( op, pe );
op->o_bd->bd_info = (BackendInfo *)on;
}
Debug( LDAP_DEBUG_TRACE,
"ppolicy_get: using default policy\n", 0, 0, 0 );
return;