From: Howard Chu Date: Wed, 17 Sep 2014 23:33:33 +0000 (+0100) Subject: ITS#7941 fix for repeated tags X-Git-Tag: OPENLDAP_REL_ENG_2_4_40~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0659ef45d486b5daaafc020cb67b561a8029036d;p=openldap 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 78a8b15629..246b900fac 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 ||