ITS#9424 fix serialNumberAndIssuerSerialCheck

This commit is contained in:
Howard Chu 2020-12-14 19:03:27 +00:00
parent c944dc55b7
commit 777098aa9d

View File

@ -4377,7 +4377,7 @@ serialNumberAndIssuerSerialCheck(
if ( in->bv_len < 3 ) return LDAP_INVALID_SYNTAX;
/* no old format */
if ( in->bv_val[0] != '{' && in->bv_val[in->bv_len-1] != '}' ) return LDAP_INVALID_SYNTAX;
if ( in->bv_val[0] != '{' || in->bv_val[in->bv_len-1] != '}' ) return LDAP_INVALID_SYNTAX;
x.bv_val++;
x.bv_len -= 2;