]> git.sur5r.net Git - openldap/commitdiff
GSER issuer quoting fix (coverity)
authorHoward Chu <hyc@openldap.org>
Wed, 14 Jan 2015 18:56:12 +0000 (18:56 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 14 Jan 2015 18:56:12 +0000 (18:56 +0000)
servers/slapd/schema_init.c

index 52be9a37464640b11908407259ce932134dfbdf1..46d1c6d718290ff91199bc51d44e0c67c9782ffc 100644 (file)
@@ -3315,6 +3315,7 @@ serialNumberAndIssuerCheck(
                                        }
                                        if ( is->bv_val[is->bv_len+1] == '"' ) {
                                                /* double dquote */
+                                               numdquotes++;
                                                is->bv_len += 2;
                                                continue;
                                        }
@@ -3892,6 +3893,7 @@ issuerAndThisUpdateCheck(
                                }
                                if ( is->bv_val[is->bv_len+1] == '"' ) {
                                        /* double dquote */
+                                       numdquotes++;
                                        is->bv_len += 2;
                                        continue;
                                }
@@ -4434,6 +4436,7 @@ serialNumberAndIssuerSerialCheck(
                                                }
                                                if ( is->bv_val[is->bv_len + 1] == '"' ) {
                                                        /* double dquote */
+                                                       numdquotes++;
                                                        is->bv_len += 2;
                                                        continue;
                                                }