Changeset 941


Ignore:
Timestamp:
12/11/25 17:53:31 (13 hours ago)
Author:
Kris Deugau
Message:

/branches/cname-collision

Correct "how did past me set up this hash anyway?"-ism
Move call to collision check sub to end of CNAME validator
See #72

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cname-collision/DNSDB.pm

    r940 r941  
    635635#  my $msg = 'OK';
    636636
    637   if ($args{type} == 5) {
     637  if (${$args{rectype}} == 5) {
    638638    # First, check for non-CNAME collisions.
    639639    my @t = $dbh->selectrow_array("SELECT count(*) FROM "._rectable($args{defrec}, $args{revrec}).
     
    876876      return ('FAIL', $errstr) if ! _check_hostname_form(${$args{val}}, ${$args{rectype}}, $args{defrec}, $args{revrec});
    877877
    878       return ('FAIL', $errstr) unless $self->_cname_collision(%args);
    879 
    880878    } # $zname !~ .rpz
    881879  } # revzone eq 'n'
     880
     881  return ('FAIL', $errstr) unless $self->_cname_collision(%args);
    882882
    883883  return ('OK','OK');
Note: See TracChangeset for help on using the changeset viewer.