Commit 77ff1f3b authored by Dr. Stephen Henson's avatar Dr. Stephen Henson Committed by Rich Salz
Browse files

RT3662: Allow leading . in nameConstraints



Change by SteveH from original by John Denker (in the RT)

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent a09474dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -405,7 +405,7 @@ static int nc_dns(ASN1_IA5STRING *dns, ASN1_IA5STRING *base)
	if (dns->length > base->length)
		{
		dnsptr += dns->length - base->length;
		if (dnsptr[-1] != '.')
		if (*baseptr != '.' && dnsptr[-1] != '.')
			return X509_V_ERR_PERMITTED_VIOLATION;
		}