Fix typo in valid_star

Reviewed-by: Rich Salz <rsalz@akamai.com>
This commit is contained in:
Viktor Dukhovni 2015-05-07 13:43:36 -04:00
parent feb96e914a
commit 8dfe1e4dd2

View file

@ -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.