]> git.sur5r.net Git - openldap/commitdiff
returning LDAP return code
authorJong Hyuk Choi <jongchoi@openldap.org>
Wed, 27 Aug 2003 20:26:55 +0000 (20:26 +0000)
committerJong Hyuk Choi <jongchoi@openldap.org>
Wed, 27 Aug 2003 20:26:55 +0000 (20:26 +0000)
servers/slapd/back-ldbm/delete.c

index 50b027f5adae77ab36a719721be31d4812c9b4e4..2cf8bfa91219c735c015628b3d7d05524125e374 100644 (file)
@@ -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 ) {