diff --git a/loxinet/zones.go b/loxinet/zones.go index 1ee30eb44..92133c04e 100644 --- a/loxinet/zones.go +++ b/loxinet/zones.go @@ -143,7 +143,7 @@ func (z *ZoneH) ZoneDelete(name string) (int, error) { func (z *ZoneH) ZoneBrAdd(name string, zns string) (int, error) { zone := z.ZoneBrs[name] if zone != nil { - if zone.Name == name { + if zone.Name == zns { return 0, nil } return ZoneExistsErr, errors.New("zone exists")