From: Ryan Tandy Date: Wed, 2 Sep 2015 01:56:19 +0000 (-0700) Subject: ITS#7537 release entry on failure X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=572ad2b037185bc1ba893a3c4afb6ea179772f17;p=openldap ITS#7537 release entry on failure --- diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index 3a6ee17d80..a0c52e11f9 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -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;