From 3e6f9f4ee517486f754ccd05ef656fc6ebc74920 Mon Sep 17 00:00:00 2001 From: Jong Hyuk Choi Date: Wed, 27 Aug 2003 20:26:55 +0000 Subject: [PATCH] returning LDAP return code --- servers/slapd/back-ldbm/delete.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ) { -- 2.39.5