[PATCH] ITS#9427 fix issuerAndThisUpdateCheck
authorHoward Chu <hyc@openldap.org>
Wed, 16 Dec 2020 18:52:42 +0000 (18:52 +0000)
committerRyan Tandy <ryan@nardis.ca>
Fri, 22 Jan 2021 03:54:40 +0000 (03:54 +0000)
Gbp-Pq: Name ITS-9427-fix-issuerAndThisUpdateCheck.patch

servers/slapd/schema_init.c

index 4527ea86b2c204016ff4b39e91c89f1d05d31e28..91912d24818f590fc72357bd87e396e0954fc000 100644 (file)
@@ -3799,7 +3799,7 @@ issuerAndThisUpdateCheck(
 
        if ( in->bv_len < STRLENOF( "{issuer \"\",thisUpdate \"YYMMDDhhmmssZ\"}" ) ) return LDAP_INVALID_SYNTAX;
 
-       if ( in->bv_val[0] != '{' && in->bv_val[in->bv_len-1] != '}' ) {
+       if ( in->bv_val[0] != '{' || in->bv_val[in->bv_len-1] != '}' ) {
                return LDAP_INVALID_SYNTAX;
        }