aboutsummaryrefslogtreecommitdiff
path: root/crypto/x509v3/v3_utl.c
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:02:05 -0400
commit9a3bf97315aa121441777bf1bc4bea3c5e00af29 (patch)
tree31fb913c2b02f0b45c41ec66116bc5105c33b30d /crypto/x509v3/v3_utl.c
parent86885c289580066792415218754bd935b449f170 (diff)
downloadopenssl-9a3bf97315aa121441777bf1bc4bea3c5e00af29.zip
openssl-9a3bf97315aa121441777bf1bc4bea3c5e00af29.tar.gz
openssl-9a3bf97315aa121441777bf1bc4bea3c5e00af29.tar.bz2
Fix typo in valid_star
Reviewed-by: Rich Salz <rsalz@akamai.com>
Diffstat (limited to 'crypto/x509v3/v3_utl.c')
-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 81227e0..debd807 100644
--- 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.