Changeset 571


Ignore:
Timestamp:
12/30/13 17:35:19 (10 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix buglet in AXFR import of non-octet IPv4 reverse zones; a certain
form of nont-octet delegation in-addr.arpa name would not be detected
causing the import to fail.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r567 r571  
    11361136    my $tmpzone = $zone;
    11371137    $tmpzone =~ s/\.in-addr\.arpa\.?//;
    1138     return ('FAIL', "Non-numerics in apparent IPv4 reverse zone name") if $tmpzone !~ /^(?:\d+-)?[\d\.]+$/;
     1138    return ('FAIL', "Non-numerics in apparent IPv4 reverse zone name [$tmpzone]") if $tmpzone !~ m{^(?:\d+[/-])?[\d\.]+$};
    11391139
    11401140    # Snag the octet pieces
     
    11531153    # Alternate form:  The second number is actually the real netmask, not the end of the range.
    11541154    my $masklen = 0;
    1155     if ($octs[0] =~ /^((\d+)-(\d+))$/) {        # take the range...
     1155    if ($octs[0] =~ m{^((\d+)[/-](\d+))$}) {    # take the range...
    11561156      if (24 < $3 && $3 < 31) {
    11571157        # we have a real netmask
Note: See TracChangeset for help on using the changeset viewer.