]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/unbind.c
fix ITS#3834
[openldap] / servers / slapd / unbind.c
index 4dec901ce9a2c4a0974a5c71f8ddfd84ed4c09a1..0a9d4e4fd4d282b46147c2bdb4394342e1a176fe 100644 (file)
@@ -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;
 }
+