Comment 1 for bug 1593378

Revision history for this message
Eric Desrochers (slashd) wrote :

I think this upstream commit could be a possible candidate to fix that issue :

commit 0659ef45d486b5daaafc020cb67b561a8029036d
Author: Howard Chu <email address hidden>
Date: Thu Sep 18 00:33:33 2014 +0100

    ITS#7941 fix for repeated tags

    Make sure ntags isn't incremented if we're skippnig the tag

diff --git a/servers/slapd/ad.c b/servers/slapd/ad.c
index 78a8b15..246b900 100644
--- a/servers/slapd/ad.c
+++ b/servers/slapd/ad.c
@@ -271,6 +271,7 @@ int slap_bv2ad(

                                if( rc == 0 && (unsigned)optlen == tags[i].bv_len ) {
                                        /* duplicate (ignore) */
+ ntags--;
                                        goto done;

                                } else if ( rc > 0 ||