From: Viktor Dukhovni Date: Thu, 7 May 2015 17:43:36 +0000 (-0400) Subject: Fix typo in valid_star X-Git-Tag: OpenSSL_1_0_2b~82 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8dfe1e4dd27c21a0ccebbb97d9b6a3612e8d54ef;p=oweals%2Fopenssl.git Fix typo in valid_star Reviewed-by: Rich Salz --- 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.