]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9427 fix issuerAndThisUpdateCheck
authorHoward Chu <hyc@openldap.org>
Wed, 16 Dec 2020 18:52:42 +0000 (18:52 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 16 Dec 2020 18:56:45 +0000 (18:56 +0000)
servers/slapd/schema_init.c

index e035c1a6a7d085750d0c02b2bc301996e46d9dc6..cc7c81693741d245243de667176ed3c4a758dd78 100644 (file)
@@ -3809,7 +3809,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;
        }