summaryrefslogtreecommitdiffstats
path: root/crypto/x509v3
diff options
context:
space:
mode:
authorViktor Dukhovni <openssl-users@dukhovni.org>2015-05-07 13:43:36 -0400
committerViktor Dukhovni <openssl-users@dukhovni.org>2015-05-07 14:00:38 -0400
commit8dfe1e4dd27c21a0ccebbb97d9b6a3612e8d54ef (patch)
tree6719d26519747a8cf649c17422eab2377f2484d3 /crypto/x509v3
parentfeb96e914ad3e30dbb6bf27cfaeeae98298a6a8d (diff)
Fix typo in valid_star
Reviewed-by: Rich Salz <rsalz@akamai.com>
Diffstat (limited to 'crypto/x509v3')
-rw-r--r--crypto/x509v3/v3_utl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509v3/v3_utl.c b/crypto/x509v3/v3_utl.c
index ed6099e120..e73a7a9c56 100644
--- a/crypto/x509v3/v3_utl.c
+++ b/crypto/x509v3/v3_utl.c
@@ -807,7 +807,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.