]> git.sur5r.net Git - openldap/commitdiff
ITS#8232 avoid redundant abandon processing
authorHoward Chu <hyc@openldap.org>
Sat, 29 Aug 2015 18:44:33 +0000 (19:44 +0100)
committerHoward Chu <hyc@openldap.org>
Sat, 29 Aug 2015 18:44:33 +0000 (19:44 +0100)
servers/slapd/connection.c

index 4f359a85325af9f0f3dda2607549dd1370a8d7c3..2488065c405ac77cc8ac0397607c9db0a6e8c8ab 100644 (file)
@@ -723,6 +723,9 @@ static void connection_abandon( Connection *c )
                SlapReply rs = {REP_RESULT};
 
                next = LDAP_STAILQ_NEXT( o, o_next );
+               /* don't abandon an op twice */
+               if ( o->o_abandon )
+                       continue;
                op.orn_msgid = o->o_msgid;
                o->o_abandon = 1;
                op.o_bd = frontendDB;