mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#9424 fix serialNumberAndIssuerSerialCheck
This commit is contained in:
parent
c944dc55b7
commit
777098aa9d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user