From: Pierangelo Masarati Date: Mon, 11 Apr 2005 19:12:30 +0000 (+0000) Subject: call frontend's be_unbind, if any, to honor hooks registered by global overlays ... X-Git-Tag: OPENLDAP_AC_BP~928 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e17ec4eb525537f2f2e74d7569e60718f144fc57;p=openldap call frontend's be_unbind, if any, to honor hooks registered by global overlays (ITS#3649) --- 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; } +