fix orderNames size

pull/1671/head
beltram 1 year ago committed by Herman Slatman
parent c41a99ad75
commit 3eb0ff43c0
No known key found for this signature in database
GPG Key ID: F4D8A44EA0A75A4F

@ -333,7 +333,7 @@ func (o *Order) sans(csr *x509.CertificateRequest) ([]x509util.SubjectAlternativ
}
// order the DNS names and IP addresses, so that they can be compared against the canonicalized CSR
orderNames := make([]string, numberOfIdentifierType(DNS, o.Identifiers)+numberOfIdentifierType(WireID, o.Identifiers))
orderNames := make([]string, numberOfIdentifierType(DNS, o.Identifiers)+2*numberOfIdentifierType(WireID, o.Identifiers))
orderIPs := make([]net.IP, numberOfIdentifierType(IP, o.Identifiers))
orderPIDs := make([]string, numberOfIdentifierType(PermanentIdentifier, o.Identifiers))
orderURIs := make([]string, 2*numberOfIdentifierType(WireID, o.Identifiers))

Loading…
Cancel
Save