]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/bind.c
remove dbenv->lock_put() call from transaction-protected operations
[openldap] / servers / slapd / bind.c
index b2b4d32b4a298df0358da2694f1b4db6cba1c30b..cbbb1383f69489d791b283abe744836b86151679 100644 (file)
@@ -265,7 +265,7 @@ do_bind(
                }
 
                /* check restrictions */
-               rc = backend_check_restrictions( NULL, conn, op, mech.bv_val, &text );
+               rc = backend_check_restrictions( NULL, conn, op, &mech, &text );
                if( rc != LDAP_SUCCESS ) {
                        send_ldap_result( conn, op, rc,
                                NULL, text, NULL, NULL );
@@ -367,7 +367,8 @@ do_bind(
                                text = "anonymous bind disallowed";
 
                        } else {
-                               rc = backend_check_restrictions( NULL, conn, op, mech.bv_val, &text );
+                               rc = backend_check_restrictions( NULL, conn, op,
+                                       &mech, &text );
                        }
 
                        /*