diff options
author | Viktor Dukhovni <openssl-users@dukhovni.org> | 2015-05-07 13:43:36 -0400 |
---|---|---|
committer | Viktor Dukhovni <openssl-users@dukhovni.org> | 2015-05-07 14:02:05 -0400 |
commit | 9a3bf97315aa121441777bf1bc4bea3c5e00af29 (patch) | |
tree | 31fb913c2b02f0b45c41ec66116bc5105c33b30d /crypto | |
parent | 86885c289580066792415218754bd935b449f170 (diff) |
Fix typo in valid_star
Reviewed-by: Rich Salz <rsalz@akamai.com>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/x509v3/v3_utl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509v3/v3_utl.c b/crypto/x509v3/v3_utl.c index 81227e0d01..debd8078ca 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. |