Prevent infinite loop in client requests

This commit is contained in:
Adnan Maolood 2020-11-01 15:14:56 -05:00
parent 8e442146c3
commit cc372e8768

View File

@ -182,6 +182,8 @@ func (c *Client) getClientCertificate(req *Request) (*tls.Certificate, error) {
for {
cert, err := c.Certificates.Lookup(scope)
if err == nil {
// Store the certificate
req.Certificate = cert
return cert, err
}
if err == ErrCertificateExpired {