]> git.sur5r.net Git - openldap/commitdiff
cleanup candidate list in case of abandon
authorPierangelo Masarati <ando@openldap.org>
Sun, 7 Aug 2005 20:04:47 +0000 (20:04 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 7 Aug 2005 20:04:47 +0000 (20:04 +0000)
servers/slapd/back-sql/search.c

index f6837cca0419c394630dfbb169f00cce3403a469..4c7326a8a000cecf01fdcf954be30513d7b8247f 100644 (file)
@@ -2239,6 +2239,12 @@ send_results:;
                send_ldap_result( op, rs );
        }
 
+       /* cleanup in case of abandon */
+       for ( ; eid != NULL; 
+                       eid = backsql_free_entryID( op,
+                               eid, eid == &bsi.bsi_base_id ? 0 : 1 ) )
+               ;
+
        backsql_entry_clean( op, &base_entry );
 
        /* in case we got here accidentally */