From: Jong Hyuk Choi Date: Wed, 27 Aug 2003 20:26:55 +0000 (+0000) Subject: returning LDAP return code X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~770 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3e6f9f4ee517486f754ccd05ef656fc6ebc74920;p=openldap returning LDAP return code --- diff --git a/servers/slapd/back-ldbm/delete.c b/servers/slapd/back-ldbm/delete.c index 50b027f5ad..2cf8bfa912 100644 --- a/servers/slapd/back-ldbm/delete.c +++ b/servers/slapd/back-ldbm/delete.c @@ -100,7 +100,7 @@ ldbm_back_delete( send_ldap_error( op, rs, LDAP_INSUFFICIENT_ACCESS, "no write access to entry" ); - rc = 1; + rc = LDAP_INSUFFICIENT_ACCESS; goto return_results; } @@ -123,7 +123,7 @@ ldbm_back_delete( if ( rs->sr_ref ) ber_bvarray_free( rs->sr_ref ); - rc = 1; + rc = LDAP_REFERRAL; goto return_results; } @@ -261,7 +261,7 @@ ldbm_back_delete( rs->sr_err = LDAP_SUCCESS; send_ldap_result( op, rs ); - rc = 0; + rc = LDAP_SUCCESS; return_results:; if( p != NULL ) {