From: Howard Chu Date: Sat, 29 Jan 2011 03:30:22 +0000 (+0000) Subject: ITS#6812 cleanup error codes X-Git-Tag: MIGRATION_CVS2GIT~168 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3f28eeb7979d1812ade7c7e75da87f880c473ff4;p=openldap ITS#6812 cleanup error codes --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 508784c2da..3c64763057 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -225,10 +225,10 @@ syncprov_state_ctrl( if ( ret < 0 ) { Debug( LDAP_DEBUG_TRACE, - "slap_build_sync_ctrl: ber_flatten2 failed\n", - 0, 0, 0 ); + "slap_build_sync_ctrl: ber_flatten2 failed (%d)\n", + ret, 0, 0 ); send_ldap_error( op, rs, LDAP_OTHER, "internal error" ); - return ret; + return LDAP_OTHER; } return LDAP_SUCCESS; @@ -271,10 +271,10 @@ syncprov_done_ctrl( if ( ret < 0 ) { Debug( LDAP_DEBUG_TRACE, - "syncprov_done_ctrl: ber_flatten2 failed\n", - 0, 0, 0 ); + "syncprov_done_ctrl: ber_flatten2 failed (%d)\n", + ret, 0, 0 ); send_ldap_error( op, rs, LDAP_OTHER, "internal error" ); - return ret; + return LDAP_OTHER; } return LDAP_SUCCESS; @@ -338,10 +338,10 @@ syncprov_sendinfo( if ( ret < 0 ) { Debug( LDAP_DEBUG_TRACE, - "syncprov_sendinfo: ber_flatten2 failed\n", - 0, 0, 0 ); + "syncprov_sendinfo: ber_flatten2 failed (%d)\n", + ret, 0, 0 ); send_ldap_error( op, rs, LDAP_OTHER, "internal error" ); - return ret; + return LDAP_OTHER; } rs->sr_rspoid = LDAP_SYNC_INFO;