]> git.sur5r.net Git - openldap/commitdiff
ITS#7941 fix for repeated tags
authorHoward Chu <hyc@openldap.org>
Wed, 17 Sep 2014 23:33:33 +0000 (00:33 +0100)
committerHoward Chu <hyc@openldap.org>
Wed, 17 Sep 2014 23:33:33 +0000 (00:33 +0100)
Make sure ntags isn't incremented if we're skippnig the tag

servers/slapd/ad.c

index 78a8b15629ae09a485799519d6ec3f704ef1d49b..246b900facff56a5d12d1021c40945371e669c2b 100644 (file)
@@ -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 ||