]> git.sur5r.net Git - openldap/commitdiff
Fix access error return
authorHoward Chu <hyc@openldap.org>
Thu, 7 Apr 2005 19:54:37 +0000 (19:54 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 7 Apr 2005 19:54:37 +0000 (19:54 +0000)
servers/slapd/bconfig.c

index 0fe2f2b08e39f0280370cbf40617bf3f0a8a4d25..816dd7a260795efb460864c73af71a6b81fc96f9 100644 (file)
@@ -3419,7 +3419,7 @@ config_back_add( Operation *op, SlapReply *rs )
 
        if ( !be_isroot( op ) ) {
                rs->sr_err = LDAP_INSUFFICIENT_ACCESS;
-               send_ldap_result( op, rs );
+               goto out;
        }
 
        cfb = (CfBackInfo *)op->o_bd->be_private;
@@ -3470,7 +3470,7 @@ config_back_modify( Operation *op, SlapReply *rs )
 
        if ( !be_isroot( op ) ) {
                rs->sr_err = LDAP_INSUFFICIENT_ACCESS;
-               send_ldap_result( op, rs );
+               goto out;
        }
 
        cfb = (CfBackInfo *)op->o_bd->be_private;
@@ -3504,7 +3504,7 @@ config_back_modrdn( Operation *op, SlapReply *rs )
 
        if ( !be_isroot( op ) ) {
                rs->sr_err = LDAP_INSUFFICIENT_ACCESS;
-               send_ldap_result( op, rs );
+               goto out;
        }
 
        cfb = (CfBackInfo *)op->o_bd->be_private;
@@ -3541,7 +3541,7 @@ config_back_search( Operation *op, SlapReply *rs )
 
        if ( !be_isroot( op ) ) {
                rs->sr_err = LDAP_INSUFFICIENT_ACCESS;
-               send_ldap_result( op, rs );
+               goto out;
        }
 
        cfb = (CfBackInfo *)op->o_bd->be_private;