Changeset 299 for trunk


Ignore:
Timestamp:
04/10/12 14:50:22 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix really silly bug that allowed adding the same reverse zone
more than once

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r298 r299  
    16731673
    16741674# quick check to start to see if we've already got one
    1675   my ($rdns_id) = $dbh->selectrow_array("SELECT rdns_id FROM revzones WHERE revzone=?", undef, ("$zone"));
     1675  my ($rdns_id) = $dbh->selectrow_array("SELECT rdns_id FROM revzones WHERE revnet=?", undef, ("$zone"));
    16761676
    16771677  return ('FAIL', "Zone already exists") if $rdns_id;
Note: See TracChangeset for help on using the changeset viewer.