Changeset 711 for trunk


Ignore:
Timestamp:
03/24/16 16:17:21 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix subtle bug in getZonesByCIDR() that would return zones that matched
the CIDR but not the location

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r710 r711  
    51895189  my %args = @_;
    51905190
    5191   my $sql = "SELECT rdns_id,revnet,default_location FROM revzones WHERE revnet >>= ? OR revnet <<= ?".
     5191  my $sql = "SELECT rdns_id,revnet,default_location FROM revzones WHERE (revnet >>= ? OR revnet <<= ?)".
    51925192        ($args{location} ? " AND default_location = ?" : '');
    51935193  my @svals = ($args{cidr}, $args{cidr});
Note: See TracChangeset for help on using the changeset viewer.