diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_ncons.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_ncons.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_ncons.c b/src/lib/libcrypto/x509/x509_ncons.c index cc7f59cd0a..c7e4e6ed9f 100644 --- a/src/lib/libcrypto/x509/x509_ncons.c +++ b/src/lib/libcrypto/x509/x509_ncons.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_ncons.c,v 1.7 2022/11/26 16:08:55 tb Exp $ */ | 1 | /* $OpenBSD: x509_ncons.c,v 1.8 2022/12/26 07:18:53 jmc Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project. | 3 | * project. |
4 | */ | 4 | */ |
@@ -482,7 +482,7 @@ nc_email(ASN1_IA5STRING *eml, ASN1_IA5STRING *base) | |||
482 | 482 | ||
483 | if (!emlat) | 483 | if (!emlat) |
484 | return X509_V_ERR_UNSUPPORTED_NAME_SYNTAX; | 484 | return X509_V_ERR_UNSUPPORTED_NAME_SYNTAX; |
485 | /* Special case: inital '.' is RHS match */ | 485 | /* Special case: initial '.' is RHS match */ |
486 | if (!baseat && (*baseptr == '.')) { | 486 | if (!baseat && (*baseptr == '.')) { |
487 | if (eml->length > base->length) { | 487 | if (eml->length > base->length) { |
488 | emlptr += eml->length - base->length; | 488 | emlptr += eml->length - base->length; |
@@ -543,7 +543,7 @@ nc_uri(ASN1_IA5STRING *uri, ASN1_IA5STRING *base) | |||
543 | if (hostlen == 0) | 543 | if (hostlen == 0) |
544 | return X509_V_ERR_UNSUPPORTED_NAME_SYNTAX; | 544 | return X509_V_ERR_UNSUPPORTED_NAME_SYNTAX; |
545 | 545 | ||
546 | /* Special case: inital '.' is RHS match */ | 546 | /* Special case: initial '.' is RHS match */ |
547 | if (*baseptr == '.') { | 547 | if (*baseptr == '.') { |
548 | if (hostlen > base->length) { | 548 | if (hostlen > base->length) { |
549 | p = hostptr + hostlen - base->length; | 549 | p = hostptr + hostlen - base->length; |