Pass zone by pointer not value in match()

This commit is contained in:
Bryan Boreham committed 2014-10-02 14:20:41 +01:00
1 parent dddb542a83
commit b87a4efff7
1 file changed
+1 -1
+1 -1
View File
@@ -30,7 +30,7 @@ func (ops LookupError) Error() string {
}
// Stop gap.
func (zone ZoneDb) match(name string) (string, error) {
func (zone *ZoneDb) match(name string) (string, error) {
for _, r := range zone.recs {
log.Printf("%s == %s ?", r.Name, name)
if r.Name == name {