1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

MAINTENANCE: Return error instead of panic when converting RR to RC (#1199)

This commit is contained in:
nemunaire
2021-07-06 17:03:29 +02:00
committed by GitHub
parent 00595a895f
commit 80f22df705
5 changed files with 63 additions and 33 deletions

View File

@@ -286,7 +286,10 @@ func (c *axfrddnsProvider) GetZoneRecords(domain string) (models.Records, error)
}
continue
default:
rec := models.RRtoRC(rr, domain)
rec, err := models.RRtoRC(rr, domain)
if err != nil {
return nil, err
}
foundRecords = append(foundRecords, &rec)
}
}