]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 31 Aug 2015 15:37:48 +0000 (10:37 -0500)
servers/slapd/connection.c

index c8cb2b7738d28228ab643a3a6d35465e94267e0c..32326fcb18cced158b1a05350d7fadd3d9bc4976 100644 (file)
@@ -741,6 +741,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;