[Pkg-openldap-devel] [openldap] 31/208: ITS#7537 release entry on failure

Ryan Tandy rtandy-guest at moszumanska.debian.org
Thu Dec 31 23:54:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

rtandy-guest pushed a commit to branch master
in repository openldap.

commit d1bd6c746dc61403e89c67bb61a8c6f9dc00ed95
Author: Ryan Tandy <ryan at nardis.ca>
Date:   Tue Sep 1 18:56:19 2015 -0700

    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 54ed531..2ba376b 100644
--- a/servers/slapd/overlays/ppolicy.c
+++ b/servers/slapd/overlays/ppolicy.c
@@ -572,6 +572,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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openldap/openldap.git



More information about the Pkg-openldap-devel mailing list