From e6ff5575965168c4d5ff9c1030f73bbc4b2a09f5 Mon Sep 17 00:00:00 2001
From: Dominik Menke <dom@digineo.de>
Date: Thu, 7 Nov 2019 11:50:44 +0100
Subject: [PATCH] cloudflare: fix panic when accessing record cache (#1005)

---
 providers/dns/cloudflare/cloudflare.go | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/providers/dns/cloudflare/cloudflare.go b/providers/dns/cloudflare/cloudflare.go
index 7c94c7b8d..00d31ee8e 100644
--- a/providers/dns/cloudflare/cloudflare.go
+++ b/providers/dns/cloudflare/cloudflare.go
@@ -105,7 +105,11 @@ func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
 		return nil, fmt.Errorf("cloudflare: %v", err)
 	}
 
-	return &DNSProvider{client: client, config: config}, nil
+	return &DNSProvider{
+		client:    client,
+		config:    config,
+		recordIDs: make(map[string]string),
+	}, nil
 }
 
 // Timeout returns the timeout and interval to use when checking for DNS propagation.