1
0
mirror of https://github.com/go-acme/lego.git synced 2025-01-18 12:30:36 +02:00

fix: nil pointer on error handling. (#1291)

This commit is contained in:
Ludovic Fernandez 2020-11-16 20:55:38 +01:00 committed by GitHub
parent b04d00b8fe
commit 3158518511
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,7 +183,7 @@ func (d *DNSProvider) Present(domain, token, keyAuth string) error {
rset, err := rsc.Get(ctx, d.config.ResourceGroup, zone, relative, dns.TXT)
if err != nil {
var detailed *autorest.DetailedError
if !errors.As(err, detailed) || detailed.StatusCode != http.StatusNotFound {
if !errors.As(err, &detailed) || detailed.StatusCode != http.StatusNotFound {
return fmt.Errorf("azure: %w", err)
}
}