From e17ec4eb525537f2f2e74d7569e60718f144fc57 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 11 Apr 2005 19:12:30 +0000 Subject: [PATCH] call frontend's be_unbind, if any, to honor hooks registered by global overlays (ITS#3649) --- servers/slapd/unbind.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/servers/slapd/unbind.c b/servers/slapd/unbind.c index 4dec901ce9..0a9d4e4fd4 100644 --- a/servers/slapd/unbind.c +++ b/servers/slapd/unbind.c @@ -47,8 +47,15 @@ do_unbind( Operation *op, SlapReply *rs ) Statslog( LDAP_DEBUG_STATS, "%s UNBIND\n", op->o_log_prefix, 0, 0, 0, 0 ); + if ( frontendDB->be_unbind ) { + op->o_bd = frontendDB; + (void)frontendDB->be_unbind( op, rs ); + op->o_bd = NULL; + } + /* pass the unbind to all backends */ - backend_unbind( op, rs ); + (void)backend_unbind( op, rs ); return 0; } + -- 2.39.5