From e225f8d334bf823eb220cf70e8d54a9612a1bc2c Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Thu, 19 Sep 2019 19:07:00 +0200 Subject: [PATCH] ovh: fix int overflow. (#972) --- providers/dns/ovh/ovh.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/providers/dns/ovh/ovh.go b/providers/dns/ovh/ovh.go index 9b96dd0f..de08fe47 100644 --- a/providers/dns/ovh/ovh.go +++ b/providers/dns/ovh/ovh.go @@ -19,7 +19,7 @@ import ( // Record a DNS record type Record struct { - ID int `json:"id,omitempty"` + ID int64 `json:"id,omitempty"` FieldType string `json:"fieldType,omitempty"` SubDomain string `json:"subDomain,omitempty"` Target string `json:"target,omitempty"` @@ -56,7 +56,7 @@ func NewDefaultConfig() *Config { type DNSProvider struct { config *Config client *ovh.Client - recordIDs map[string]int + recordIDs map[string]int64 recordIDsMu sync.Mutex } @@ -106,7 +106,7 @@ func NewDNSProviderConfig(config *Config) (*DNSProvider, error) { return &DNSProvider{ config: config, client: client, - recordIDs: make(map[string]int), + recordIDs: make(map[string]int64), }, nil }