Changeset 789 for trunk


Ignore:
Timestamp:
09/13/19 16:50:31 (5 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix subtle goof in _validate_65283(); if the IP specification was a CIDR
that matched a revzone exactly, it would be rejected since the revzone was
not within the CIDR specified.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r787 r789  
    13141314      # work here since we don't *know* which parent to put it in.
    13151315      # ${$args{val}} has been validated as a valid IP by now, in one of the above calls.
    1316       my ($revid) = $dbh->selectrow_array("SELECT rdns_id FROM revzones WHERE revnet >> ?".
     1316      my ($revid) = $dbh->selectrow_array("SELECT rdns_id FROM revzones WHERE revnet >>= ?".
    13171317        " ORDER BY masklen(revnet) DESC", undef, (${$args{val}}));
    13181318      # Fail if no match;  we can't coerce a PTR-template type down to not include the PTR bit currently.
Note: See TracChangeset for help on using the changeset viewer.