projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix typo in valid_star
[openssl.git]
/
crypto
/
x509v3
/
v3_utl.c
diff --git
a/crypto/x509v3/v3_utl.c
b/crypto/x509v3/v3_utl.c
index 81227e0d01de406c4ba57ec04c9cb367e0a9c1da..debd8078caef83e591aede236c81c54f509fd520 100644
(file)
--- a/
crypto/x509v3/v3_utl.c
+++ b/
crypto/x509v3/v3_utl.c
@@
-795,7
+795,7
@@
static const unsigned char *valid_star(const unsigned char *p, size_t len,
*/
if (p[i] == '*') {
int atstart = (state & LABEL_START);
- int atend = (i == len - 1 || p[i +
i
] == '.');
+ int atend = (i == len - 1 || p[i +
1
] == '.');
/*-
* At most one wildcard per pattern.
* No wildcards in IDNA labels.