[openssl-commits] [openssl] OpenSSL_1_0_2-stable update

Viktor Dukhovni viktor at openssl.org
Thu May 7 18:00:54 UTC 2015


The branch OpenSSL_1_0_2-stable has been updated
       via  8dfe1e4dd27c21a0ccebbb97d9b6a3612e8d54ef (commit)
      from  feb96e914ad3e30dbb6bf27cfaeeae98298a6a8d (commit)


- Log -----------------------------------------------------------------
commit 8dfe1e4dd27c21a0ccebbb97d9b6a3612e8d54ef
Author: Viktor Dukhovni <openssl-users at dukhovni.org>
Date:   Thu May 7 13:43:36 2015 -0400

    Fix typo in valid_star
    
    Reviewed-by: Rich Salz <rsalz at akamai.com>

-----------------------------------------------------------------------

Summary of changes:
 crypto/x509v3/v3_utl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/x509v3/v3_utl.c b/crypto/x509v3/v3_utl.c
index ed6099e..e73a7a9 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.


More information about the openssl-commits mailing list