]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
More for ITS#8845, skip cleanup on async op with extended operations
authorQuanah Gibson-Mount <quanah@openldap.org>
Wed, 26 Aug 2020 21:55:39 +0000 (21:55 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 26 Aug 2020 21:55:39 +0000 (21:55 +0000)
servers/slapd/extended.c

index 137d894ff8b584d425b19e5c8c45a811e6940163..21e5143b1a1acdf205e68c41bbb5ef03e7155365 100644 (file)
@@ -174,6 +174,11 @@ do_extended(
        op->o_bd = frontendDB;
        rs->sr_err = frontendDB->be_extended( op, rs );
 
+       if ( rs->sr_err == SLAPD_ASYNCOP ){
+               /* skip cleanup */
+               return rs->sr_err;
+       }
+
        /* clean up in case some overlay set them? */
        if ( !BER_BVISNULL( &op->o_req_ndn ) ) {
                if ( !BER_BVISNULL( &op->o_req_dn )