From 572ad2b037185bc1ba893a3c4afb6ea179772f17 Mon Sep 17 00:00:00 2001 From: Ryan Tandy Date: Tue, 1 Sep 2015 18:56:19 -0700 Subject: [PATCH] ITS#7537 release entry on failure --- servers/slapd/overlays/ppolicy.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.39.5