Changeset 612


Ignore:
Timestamp:
04/22/14 17:32:25 (10 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix silly copy-paste context typos moving _check_hostname_form() into _validate_1()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r611 r612  
    507507    # ${$args{val}} is either a valid IP or a string ending with the .arpa zone name;
    508508    # now check if it's a well-formed FQDN
    509     return ('FAIL', $errstr) if ! _check_hostname_form($args{val}, $$rectype, $defrec, $revrec)
    510         if ${$args{val}} =~ /\.arpa$/;
     509    return ('FAIL', $errstr) if ! _check_hostname_form($args{val}, ${$args{rectype}}, $args{defrec}, $args{revrec}) &&
     510        ${$args{val}} =~ /\.arpa$/;
    511511
    512512    # Check IP is well-formed, and that it's a v4 address
Note: See TracChangeset for help on using the changeset viewer.