mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Remove unnecessary arg from front end backend_check_referrals call
This commit is contained in:
parent
74f77cfe11
commit
c332df50de
@ -156,7 +156,6 @@ do_add( Connection *conn, Operation *op )
|
||||
|
||||
/* make sure this backend recongizes critical controls */
|
||||
rc = backend_check_controls( be, conn, op, &text ) ;
|
||||
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
send_ldap_result( conn, op, rc,
|
||||
NULL, text, NULL, NULL );
|
||||
@ -164,9 +163,7 @@ do_add( Connection *conn, Operation *op )
|
||||
}
|
||||
|
||||
/* check for referrals */
|
||||
rc = backend_check_referrals( be, conn, op,
|
||||
e->e_dn, e->e_ndn, &text );
|
||||
|
||||
rc = backend_check_referrals( be, conn, op, e->e_dn, e->e_ndn );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
goto done;
|
||||
}
|
||||
|
@ -620,15 +620,15 @@ int backend_check_referrals(
|
||||
Connection *conn,
|
||||
Operation *op,
|
||||
const char *dn,
|
||||
const char *ndn,
|
||||
const char **text )
|
||||
const char *ndn )
|
||||
{
|
||||
int rc = LDAP_SUCCESS;
|
||||
*bv = NULL;
|
||||
|
||||
if( be->be_chk_referrals ) {
|
||||
const char *text;
|
||||
|
||||
rc = be->be_chk_referrals( be,
|
||||
conn, op, dn, ndn, text );
|
||||
conn, op, dn, ndn, &text );
|
||||
|
||||
if( rc != LDAP_SUCCESS && rc != LDAP_REFERRAL ) {
|
||||
send_ldap_result( conn, op, rc,
|
||||
|
@ -107,7 +107,6 @@ do_compare(
|
||||
|
||||
/* make sure this backend recongizes critical controls */
|
||||
rc = backend_check_controls( be, conn, op, &text ) ;
|
||||
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
send_ldap_result( conn, op, rc,
|
||||
NULL, text, NULL, NULL );
|
||||
@ -115,9 +114,7 @@ do_compare(
|
||||
}
|
||||
|
||||
/* check for referrals */
|
||||
rc = backend_check_referrals( be, conn, op,
|
||||
dn, ndn, &text );
|
||||
|
||||
rc = backend_check_referrals( be, conn, op, dn, ndn );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
goto cleanup;
|
||||
}
|
||||
|
@ -81,7 +81,6 @@ do_delete(
|
||||
|
||||
/* make sure this backend recongizes critical controls */
|
||||
rc = backend_check_controls( be, conn, op, &text ) ;
|
||||
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
send_ldap_result( conn, op, rc,
|
||||
NULL, text, NULL, NULL );
|
||||
@ -89,9 +88,7 @@ do_delete(
|
||||
}
|
||||
|
||||
/* check for referrals */
|
||||
rc = backend_check_referrals( be, conn, op,
|
||||
dn, ndn, &text );
|
||||
|
||||
rc = backend_check_referrals( be, conn, op, dn, ndn );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
goto cleanup;
|
||||
}
|
||||
|
@ -171,7 +171,6 @@ do_modify(
|
||||
|
||||
/* make sure this backend recongizes critical controls */
|
||||
rc = backend_check_controls( be, conn, op, &text ) ;
|
||||
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
send_ldap_result( conn, op, rc,
|
||||
NULL, text, NULL, NULL );
|
||||
@ -179,9 +178,7 @@ do_modify(
|
||||
}
|
||||
|
||||
/* check for referrals */
|
||||
rc = backend_check_referrals( be, conn, op,
|
||||
dn, ndn, &text );
|
||||
|
||||
rc = backend_check_referrals( be, conn, op, dn, ndn );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
goto cleanup;
|
||||
}
|
||||
|
@ -167,7 +167,6 @@ do_modrdn(
|
||||
|
||||
/* make sure this backend recongizes critical controls */
|
||||
rc = backend_check_controls( be, conn, op, &text ) ;
|
||||
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
send_ldap_result( conn, op, rc,
|
||||
NULL, text, NULL, NULL );
|
||||
@ -175,9 +174,7 @@ do_modrdn(
|
||||
}
|
||||
|
||||
/* check for referrals */
|
||||
rc = backend_check_referrals( be, conn, op,
|
||||
dn, ndn, &text );
|
||||
|
||||
rc = backend_check_referrals( be, conn, op, dn, ndn );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
goto cleanup;
|
||||
}
|
||||
|
@ -160,8 +160,7 @@ LIBSLAPD_F( int ) backend_check_referrals LDAP_P((
|
||||
Connection *conn,
|
||||
Operation *op,
|
||||
const char *dn,
|
||||
const char *ndn,
|
||||
const char **text ));
|
||||
const char *ndn ));
|
||||
|
||||
LIBSLAPD_F (int) backend_connection_init LDAP_P((Connection *conn));
|
||||
LIBSLAPD_F (int) backend_connection_destroy LDAP_P((Connection *conn));
|
||||
|
@ -223,9 +223,7 @@ do_search(
|
||||
}
|
||||
|
||||
/* check for referrals */
|
||||
rc = backend_check_referrals( be, conn, op,
|
||||
base, nbase, &text );
|
||||
|
||||
rc = backend_check_referrals( be, conn, op, base, nbase );
|
||||
if ( rc != LDAP_SUCCESS ) {
|
||||
goto return_results;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user