From 1590811111b5c99ca4d248537b4e903a47028507 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Tue, 26 May 2015 17:44:44 -0400 Subject: [PATCH] Fix typo in valid_star. (Imported from upstream's 9a3bf97315aa121441777bf1bc4bea3c5e00af29.) Change-Id: I1ce28437333012347985c788c86671f5ec34b34f Reviewed-on: https://boringssl-review.googlesource.com/4888 Reviewed-by: Adam Langley --- 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 d79f0dee..40f4ade9 100644 --- a/crypto/x509v3/v3_utl.c +++ b/crypto/x509v3/v3_utl.c @@ -751,7 +751,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.