]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10492 fix previous commit
authorHoward Chu <hyc@openldap.org>
Thu, 9 Apr 2026 18:54:35 +0000 (19:54 +0100)
committerHoward Chu <hyc@openldap.org>
Thu, 9 Apr 2026 18:54:35 +0000 (19:54 +0100)
servers/slapd/result.c

index 0cc1106bcf5b7c461bcda37d7a8988c3b93f2616..a2bd712610725597bd3ffa5c8795d0864ba029cf 100644 (file)
@@ -874,7 +874,6 @@ slap_send_ldap_result( Operation *op, SlapReply *rs )
 
        rs->sr_type = REP_RESULT;
 
-       assert( !LDAP_API_ERROR( rs->sr_err ) );
        assert( rs->sr_err != LDAP_PARTIAL_RESULTS );
 
        if ( rs->sr_err == LDAP_REFERRAL ) {
@@ -891,6 +890,8 @@ slap_send_ldap_result( Operation *op, SlapReply *rs )
        if ( rs->sr_err == SLAPD_ABANDON || op->o_abandon )
                goto abandon;
 
+       assert( !LDAP_API_ERROR( rs->sr_err ) );
+
        Debug( LDAP_DEBUG_TRACE,
                "send_ldap_result: %s p=%d\n",
                op->o_log_prefix, op->o_protocol );