]> git.sur5r.net Git - openldap/commitdiff
return error (ITS#6581)
authorPierangelo Masarati <ando@openldap.org>
Thu, 24 Jun 2010 19:26:22 +0000 (19:26 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 24 Jun 2010 19:26:22 +0000 (19:26 +0000)
servers/slapd/modify.c

index f8c6394b40354bf9201edc1fb3cfe2dc5753da42..a129cea82ab49055870ade6c1dac2db77c911ee9 100644 (file)
@@ -82,12 +82,14 @@ do_modify(
        if ( rs->sr_err != LDAP_SUCCESS ) {
                Debug( LDAP_DEBUG_ANY, "%s do_modify: slap_parse_modlist failed err=%d msg=%s\n",
                        op->o_log_prefix, rs->sr_err, rs->sr_text );
+               send_ldap_result( op, rs );
                goto cleanup;
        }
 
        if( get_ctrls( op, rs, 1 ) != LDAP_SUCCESS ) {
                Debug( LDAP_DEBUG_ANY, "%s do_modify: get_ctrls failed\n",
                        op->o_log_prefix, 0, 0 );
+               send_ldap_result( op, rs );
                goto cleanup;
        }