]> 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)
committerHoward Chu <hyc@openldap.org>
Wed, 16 Dec 2020 18:52:42 +0000 (18:52 +0000)
servers/slapd/schema_init.c

index 36e80c049081544701b209d799a9ad006a4323bc..1e87457869628de32b8d0252ea13d2105eb32424 100644 (file)
@@ -3884,7 +3884,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;
        }