From af8f1e074161a4498bb8c7eef05e117f054f7761 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 18 Sep 2014 00:33:33 +0100 Subject: [PATCH] ITS#7941 fix for repeated tags Make sure ntags isn't incremented if we're skippnig the tag --- servers/slapd/ad.c | 1 + 1 file changed, 1 insertion(+) 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 || -- 2.39.5