From 805eec97569ff533e1b75b16eac0bdd94e67bdd6 Mon Sep 17 00:00:00 2001 From: xenolf Date: Wed, 14 Mar 2018 19:20:23 +0100 Subject: [PATCH] Add missing return on error when order creation fails --- acmev2/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/acmev2/client.go b/acmev2/client.go index ce126470..40acdbc1 100644 --- a/acmev2/client.go +++ b/acmev2/client.go @@ -296,6 +296,7 @@ DNSNames: for _, auth := range order.Identifiers { identErrors[auth.Value] = err } + return CertificateResource{}, identErrors } authz, failures := c.getAuthzForOrder(order) // If any challenge fails - return. Do not generate partial SAN certificates. @@ -350,6 +351,7 @@ func (c *Client) ObtainCertificate(domains []string, bundle bool, privKey crypto for _, auth := range order.Identifiers { identErrors[auth.Value] = err } + return CertificateResource{}, identErrors } authz, failures := c.getAuthzForOrder(order) // If any challenge fails - return. Do not generate partial SAN certificates.