mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
ITS#6812 cleanup error codes
This commit is contained in:
parent
20e7176183
commit
3f28eeb797
@ -225,10 +225,10 @@ syncprov_state_ctrl(
|
|||||||
|
|
||||||
if ( ret < 0 ) {
|
if ( ret < 0 ) {
|
||||||
Debug( LDAP_DEBUG_TRACE,
|
Debug( LDAP_DEBUG_TRACE,
|
||||||
"slap_build_sync_ctrl: ber_flatten2 failed\n",
|
"slap_build_sync_ctrl: ber_flatten2 failed (%d)\n",
|
||||||
0, 0, 0 );
|
ret, 0, 0 );
|
||||||
send_ldap_error( op, rs, LDAP_OTHER, "internal error" );
|
send_ldap_error( op, rs, LDAP_OTHER, "internal error" );
|
||||||
return ret;
|
return LDAP_OTHER;
|
||||||
}
|
}
|
||||||
|
|
||||||
return LDAP_SUCCESS;
|
return LDAP_SUCCESS;
|
||||||
@ -271,10 +271,10 @@ syncprov_done_ctrl(
|
|||||||
|
|
||||||
if ( ret < 0 ) {
|
if ( ret < 0 ) {
|
||||||
Debug( LDAP_DEBUG_TRACE,
|
Debug( LDAP_DEBUG_TRACE,
|
||||||
"syncprov_done_ctrl: ber_flatten2 failed\n",
|
"syncprov_done_ctrl: ber_flatten2 failed (%d)\n",
|
||||||
0, 0, 0 );
|
ret, 0, 0 );
|
||||||
send_ldap_error( op, rs, LDAP_OTHER, "internal error" );
|
send_ldap_error( op, rs, LDAP_OTHER, "internal error" );
|
||||||
return ret;
|
return LDAP_OTHER;
|
||||||
}
|
}
|
||||||
|
|
||||||
return LDAP_SUCCESS;
|
return LDAP_SUCCESS;
|
||||||
@ -338,10 +338,10 @@ syncprov_sendinfo(
|
|||||||
|
|
||||||
if ( ret < 0 ) {
|
if ( ret < 0 ) {
|
||||||
Debug( LDAP_DEBUG_TRACE,
|
Debug( LDAP_DEBUG_TRACE,
|
||||||
"syncprov_sendinfo: ber_flatten2 failed\n",
|
"syncprov_sendinfo: ber_flatten2 failed (%d)\n",
|
||||||
0, 0, 0 );
|
ret, 0, 0 );
|
||||||
send_ldap_error( op, rs, LDAP_OTHER, "internal error" );
|
send_ldap_error( op, rs, LDAP_OTHER, "internal error" );
|
||||||
return ret;
|
return LDAP_OTHER;
|
||||||
}
|
}
|
||||||
|
|
||||||
rs->sr_rspoid = LDAP_SYNC_INFO;
|
rs->sr_rspoid = LDAP_SYNC_INFO;
|
||||||
|
Loading…
Reference in New Issue
Block a user