projects
/
openldap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62484c4
)
[PATCH] ITS#9424 fix serialNumberAndIssuerSerialCheck
author
Howard Chu
<hyc@openldap.org>
Mon, 14 Dec 2020 19:03:27 +0000
(19:03 +0000)
committer
Ryan Tandy
<ryan@nardis.ca>
Sun, 14 Feb 2021 18:32:34 +0000
(18:32 +0000)
Gbp-Pq: Name ITS-9424-fix-serialNumberAndIssuerSerialCheck.patch
servers/slapd/schema_init.c
patch
|
blob
|
history
diff --git
a/servers/slapd/schema_init.c
b/servers/slapd/schema_init.c
index 5f3b2878e886768594ca37b337dfb8872e45c92e..4527ea86b2c204016ff4b39e91c89f1d05d31e28 100644
(file)
--- a/
servers/slapd/schema_init.c
+++ b/
servers/slapd/schema_init.c
@@
-4289,7
+4289,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;