diff --git a/loxinet/zones.go b/loxinet/zones.go index 5df24fe0d..ec9d0daea 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")